|C#||Visual Basic||Visual C++|
public ZoneLocalMapping MapLocal( LocalDateTime localDateTime )
Public Function MapLocal ( localDateTime As LocalDateTime ) As ZoneLocalMapping
public: ZoneLocalMapping^ MapLocal( LocalDateTime localDateTime )
- localDateTime (LocalDateTime)
- The local date and time to map in this time zone.
A mapping of the given local date and time to zero, one or two zoned date/time values.
Mapping a local date/time to a time zone can give an unambiguous, ambiguous or impossible result, depending on time zone transitions. Use the return value of this method to handle these cases in an appropriate way for your use case.
As an alternative, consider ResolveLocal(LocalDateTime, ZoneLocalMappingResolver), which uses a caller-provided strategy to convert the ZoneLocalMapping returned here to a ZonedDateTime.
Assembly: NodaTime (Module: NodaTime.dll) Version: 220.127.116.11 (1.2.0)