ZoneLocalMappingResolver typedef
Resolves the result of attempting to map a local date and time to a target time zone.
This delegate is consumed by LocalDateTime.inZone and DateTimeZone.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.
mapping
: The intermediate result of mapping a local time to a target time zone.
AmbiguousTimeException
: The implementation rejects requests to map ambiguous times.
SkippedTimeException
: The implementation rejects requests to map skipped times.
Returns: A ZonedDateTime in the target time zone.
Implementation
typedef ZoneLocalMappingResolver = ZonedDateTime Function(ZoneLocalMapping mapping);