Noda Time
AtStrictly Method (localDateTime)
NamespacesNodaTimeDateTimeZoneAtStrictly(LocalDateTime)

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

Maps the given LocalDateTime to the corresponding ZonedDateTime, if and only if that mapping is unambiguous in this time zone. Otherwise, SkippedTimeException or AmbiguousTimeException is thrown, depending on whether the mapping is ambiguous or the local date/time is skipped entirely.
Declaration Syntax
C#Visual BasicVisual C++
public ZonedDateTime AtStrictly(
	LocalDateTime localDateTime
)
Public Function AtStrictly ( _
	localDateTime As LocalDateTime _
) As ZonedDateTime
public:
ZonedDateTime AtStrictly(
	LocalDateTime localDateTime
)
Parameters
localDateTime (LocalDateTime)
The local date and time to map into this time zone.
Return Value
The unambiguous matching ZonedDateTime if it exists.
Remarks
See AtLeniently(LocalDateTime) and ResolveLocal(LocalDateTime, ZoneLocalMappingResolver) for alternative ways to map a local time to a specific instant.
Exceptions
ExceptionCondition
SkippedTimeExceptionThe given local date/time is skipped in this time zone.
AmbiguousTimeExceptionThe given local date/time is ambiguous in this time zone.

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