Table of Contents

Method ToScheduleZonedDateTime

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ToScheduleZonedDateTime(IPrimeTime, Instant)

Maps an NodaTime.Instant to a NodaTime.ZonedDateTime in the receiver's LocalScheduleDateTimeZone.

public static ZonedDateTime ToScheduleZonedDateTime(this IPrimeTime time, Instant instant)

Parameters

time IPrimeTime
instant Instant

The absolute instant on the UTC timeline.

Returns

ZonedDateTime

The instant expressed in the local schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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

ToScheduleZonedDateTime(IPrimeTime, ZonedDateTime)

Converts a NodaTime.ZonedDateTime to an NodaTime.Instant and maps it into the receiver's LocalScheduleDateTimeZone.

public static ZonedDateTime ToScheduleZonedDateTime(this IPrimeTime time, ZonedDateTime zonedDateTime)

Parameters

time IPrimeTime
zonedDateTime ZonedDateTime

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

Returns

ZonedDateTime

The same absolute instant expressed in the local schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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