Delegate ZoneLocalMappingResolver
Resolves the result of attempting to map a local date and time to a target time zone.
Since 1.0.x
Availability net45, netstandard1.3, netstandard2.0
Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
public delegate ZonedDateTime ZoneLocalMappingResolver(ZoneLocalMapping mapping);
Parameters
Type | Name | Description |
---|---|---|
ZoneLocalMapping | mapping | The intermediate result of mapping a local time to a target time zone. |
Returns
Type | Description |
---|---|
ZonedDateTime | A ZonedDateTime in the target time zone. |
Remarks
This delegate is consumed by InZone(DateTimeZone, ZoneLocalMappingResolver) and ResolveLocal(LocalDateTime, ZoneLocalMappingResolver), among others. It provides the strategy for converting a ZoneLocalMapping (the result of attempting to map a local date and time to a target time zone) to a ZonedDateTime.
See the Resolvers class for predefined implementations and a way of combining separate SkippedTimeResolver and AmbiguousTimeResolver values.