Noda Time
AtStrictly Method (localDateTime)
NamespacesNodaTimeDateTimeZoneAtStrictly(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
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) Version: 1.0.0.0 (1.0.1)