Noda Time
AtStrictly Method (localDateTime)
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
ZonedDateTime AtStrictly(
	LocalDateTime localDateTime
localDateTime (LocalDateTime)
The local date and time to map into this time zone.
Return Value
The unambiguous matching ZonedDateTime if it exists.
See AtLeniently(LocalDateTime) and ResolveLocal(LocalDateTime, ZoneLocalMappingResolver) for alternative ways to map a local time to a specific instant.
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) Version: (1.0.1)