Noda Time
ToDateTimeUnspecified Method
NamespacesNodaTimeZonedDateTimeToDateTimeUnspecified()()()()

[This is preliminary documentation and is subject to change.]

Constructs a DateTime from this ZonedDateTime which has a Kind of Unspecified and represents the same local time as this value rather than the same instant in time.
Declaration Syntax
C#Visual BasicVisual C++
public DateTime ToDateTimeUnspecified()
Public Function ToDateTimeUnspecified As DateTime
public:
DateTime ToDateTimeUnspecified()
Return Value
A DateTime representation of this value with an "unspecified" kind, with the same local date and time as this value.
Remarks
Unspecified is slightly odd - it can be treated as UTC if you use ToLocalTime()()()() or as system local time if you use ToUniversalTime()()()(), but it's the only kind which allows you to construct a DateTimeOffset with an arbitrary offset.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)