Method Resolve
- Namespace
- MailFathom.Domain.Scheduling
- Assembly
- MailFathom.Domain.dll
Resolve(DateTime, TimeZoneInfo)
Resolves a wall-clock time in a zone to the instant it names.
public static ZonedInstant Resolve(DateTime localTime, TimeZoneInfo zone)
Parameters
localTimeDateTimeThe time as it reads on a clock in that zone, whose own kind and offset are ignored.
zoneTimeZoneInfoThe zone the time is read in.
Returns
- ZonedInstant
The instant, together with the zone it was named in.
Exceptions
- ArgumentNullException
Thrown when
zoneis null.- ArgumentException
Thrown when the zone's identifier is longer than MaximumZoneIdLength.