Method ToScheduleLocalTime
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
timeIPrimeTimeinstantInstantThe absolute instant on the UTC timeline.
Returns
- LocalTime
The wall-clock time of day in the schedule zone.
Exceptions
- ArgumentNullException
timeis null.- ArgumentException
timeis 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
timeIPrimeTimezonedDateTimeZonedDateTimeA zoned value in any zone; only its instant is used.
Returns
- LocalTime
The wall-clock time of day in the schedule zone.
Exceptions
- ArgumentNullException
timeis null.- ArgumentException
timeis not an IPrimeClock and the schedule zone cannot be resolved.