[This is preliminary documentation and is subject to change.]
Returns the mapping of this local date/time within the given DateTimeZone,
with "strict" rules applied such that an exception is thrown if either the mapping is
ambiguous or the time is skipped.
| C# | Visual Basic | Visual C++ |
public ZonedDateTime InZoneStrictly( DateTimeZone zone )
Public Function InZoneStrictly ( _ zone As DateTimeZone _ ) As ZonedDateTime
public: ZonedDateTime InZoneStrictly( DateTimeZone^ zone )
- zone (DateTimeZone)
- The time zone in which to map this local date/time.
The result of mapping this local date/time in the given time zone.
This is solely a convenience method for calling AtStrictly(LocalDateTime).
| Exception | Condition |
|---|---|
| ArgumentNullException | zone is null. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)