Delegate AmbiguousTimeResolver
Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
public delegate ZonedDateTime AmbiguousTimeResolver(ZonedDateTime earlier, ZonedDateTime later);
Parameters
Type | Name | Description |
---|---|---|
Zoned |
earlier | The earlier of the ambiguous matches for the original local date and time |
Zoned |
later | The later of the ambiguous matches for the original local date and time |
Returns
Type | Description |
---|---|
Zoned |
A Zoned |
Remarks
This delegate is used by Create
The returned value should be one of the two parameter values, based on the policy of the specific
implementation. Alternatively, it can throw an Ambiguous
See the Resolvers class for predefined implementations.
Implementations of this delegate can reasonably assume that the target local date and time really is ambiguous; the behaviour when the local date and time can be unambiguously mapped into the target time zone (or when it's skipped) is undefined.