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