Table of Contents

Method ToLocalTime

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

ToLocalTime(TimeOnly)

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

public static LocalTime ToLocalTime(TimeOnly timeOnly)

Parameters

timeOnly TimeOnly

The time of day.

Returns

LocalTime

The equivalent NodaTime.LocalTime via FromTicksSinceMidnight(long).

ToLocalTime(LocalTimeOfDay)

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

public static LocalTime ToLocalTime(LocalTimeOfDay timeOfDay)

Parameters

timeOfDay LocalTimeOfDay

The wrapped local time of day.

Returns

LocalTime

The equivalent NodaTime.LocalTime via FromTicksSinceMidnight(long).

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.

public static LocalTime ToLocalTime(UtcTimeOfDay timeOfDay)

Parameters

timeOfDay UtcTimeOfDay

The wrapped UTC time of day.

Returns

LocalTime

The equivalent NodaTime.LocalTime via FromTicksSinceMidnight(long).