Table of Contents

Method ToScheduleLocalDate

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ToScheduleLocalDate(IPrimeTime, Instant)

Maps an NodaTime.Instant to the local calendar NodaTime.LocalDate in the receiver's LocalScheduleDateTimeZone.

public static LocalDate ToScheduleLocalDate(this IPrimeTime time, Instant instant)

Parameters

time IPrimeTime
instant Instant

The absolute instant on the UTC timeline.

Returns

LocalDate

The calendar date in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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

ToScheduleLocalDate(IPrimeTime, ZonedDateTime)

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

public static LocalDate ToScheduleLocalDate(this IPrimeTime time, ZonedDateTime zonedDateTime)

Parameters

time IPrimeTime
zonedDateTime ZonedDateTime

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

Returns

LocalDate

The calendar date in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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