Table of Contents

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

localTime DateTime

The time as it reads on a clock in that zone, whose own kind and offset are ignored.

zone TimeZoneInfo

The zone the time is read in.

Returns

ZonedInstant

The instant, together with the zone it was named in.

Exceptions

ArgumentNullException

Thrown when zone is null.

ArgumentException

Thrown when the zone's identifier is longer than MaximumZoneIdLength.