Table of Contents

Method ToScheduleLocalTime

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ToScheduleLocalTime(IPrimeTime, Instant)

Maps an NodaTime.Instant to the local time-of-day NodaTime.LocalTime in the receiver's LocalScheduleDateTimeZone.

public static LocalTime ToScheduleLocalTime(this IPrimeTime time, Instant instant)

Parameters

time IPrimeTime
instant Instant

The absolute instant on the UTC timeline.

Returns

LocalTime

The wall-clock time of day in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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

ToScheduleLocalTime(IPrimeTime, ZonedDateTime)

Converts a NodaTime.ZonedDateTime to the local NodaTime.LocalTime in the receiver's LocalScheduleDateTimeZone.

public static LocalTime ToScheduleLocalTime(this IPrimeTime time, ZonedDateTime zonedDateTime)

Parameters

time IPrimeTime
zonedDateTime ZonedDateTime

A zoned value in any zone; only its instant is used.

Returns

LocalTime

The wall-clock time of day in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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