DateTimeZone MapLocal Method Noda Time
Returns complete information about how the given LocalDateTime is mapped in this time zone.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public ZoneLocalMapping MapLocal(
	LocalDateTime localDateTime
)

Parameters

localDateTime
Type: NodaTime LocalDateTime
The local date and time to map in this time zone.

Return Value

Type: ZoneLocalMapping
A mapping of the given local date and time to zero, one or two zoned date/time values.
Remarks

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.

Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also