Table of Contents

Method ToScheduleLocalWallDateTime

Namespace
KZDev.SystemClock.PrimeTime
Assembly
KZDev.SystemClock.PrimeTime.dll

ToScheduleLocalWallDateTime(IPrimeTime, DateTimeOffset)

Converts an absolute DateTimeOffset to the schedule-local wall-clock DateTime (unspecified kind) in the receiver's LocalScheduleTimeZone.

public static DateTime ToScheduleLocalWallDateTime(this IPrimeTime time, DateTimeOffset instant)

Parameters

time IPrimeTime
instant DateTimeOffset

An absolute point in time.

Returns

DateTime

Local wall date and time in the schedule zone; Kind is Unspecified.

Exceptions

ArgumentNullException

time is null.

ArgumentException

time is not an IPrimeClock and the schedule zone cannot be resolved.

ToScheduleLocalWallDateTime(IPrimeTime, DateTime)

Converts a UTC DateTime to the schedule-local wall-clock DateTime in the receiver's LocalScheduleTimeZone.

public static DateTime ToScheduleLocalWallDateTime(this IPrimeTime time, DateTime utcDateTime)

Parameters

time IPrimeTime
utcDateTime DateTime

An absolute UTC timeline value; must use Utc.

Returns

DateTime

Local wall date and time in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

utcDateTime does not use Utc, or time is not an IPrimeClock.