Table of Contents

Class PrimeTimeOfDayConversion

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

Converts between Noda NodaTime.LocalTime and BCL time-of-day shapes used by PrimeTime (TimeOnly, LocalTimeOfDay, UtcTimeOfDay), preserving 100-nanosecond tick resolution.

public static class PrimeTimeOfDayConversion
Inheritance
PrimeTimeOfDayConversion

Remarks

Only supported in .NET 8+. Not supported in NetStandard 2.0.

Methods

ToLocalTime(LocalTimeOfDay)

Converts a local-schedule LocalTimeOfDay to Noda NodaTime.LocalTime.

ToLocalTime(UtcTimeOfDay)

Converts a UTC-schedule UtcTimeOfDay to Noda NodaTime.LocalTime representing the same wall-clock time of day (ticks since midnight); interpretation as UTC vs local is determined by timer registration.

ToLocalTime(TimeOnly)

Converts a BCL TimeOnly wall-clock value to Noda NodaTime.LocalTime.

ToLocalTimeOfDay(LocalTime)

Converts Noda NodaTime.LocalTime to a LocalTimeOfDay for persistence or BCL-first APIs.

ToUtcTimeOfDay(LocalTime)

Converts Noda NodaTime.LocalTime to a UtcTimeOfDay for persistence or BCL-first APIs.