Table of Contents

Method ToScheduleLocalDateTime

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ToScheduleLocalDateTime(IPrimeTime, ZonedDateTime)

Converts a NodaTime.ZonedDateTime to the local wall-clock NodaTime.LocalDateTime in the receiver's LocalScheduleDateTimeZone.

public static LocalDateTime ToScheduleLocalDateTime(this IPrimeTime time, ZonedDateTime zonedDateTime)

Parameters

time IPrimeTime
zonedDateTime ZonedDateTime

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

Returns

LocalDateTime

Local date and time in the schedule zone.

Exceptions

ArgumentNullException

time is null.

ArgumentException

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