Method ToScheduleLocalDate
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
timeIPrimeTimeinstantInstantThe absolute instant on the UTC timeline.
Returns
- LocalDate
The calendar date in the schedule zone.
Exceptions
- ArgumentNullException
timeis null.- ArgumentException
timeis 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
timeIPrimeTimezonedDateTimeZonedDateTimeA zoned value in any zone; only its instant is used.
Returns
- LocalDate
The calendar date in the schedule zone.
Exceptions
- ArgumentNullException
timeis null.- ArgumentException
timeis not an IPrimeClock and the schedule zone cannot be resolved.