Method ToLocalTime
ToLocalTime(TimeOnly)
Converts a BCL TimeOnly wall-clock value to Noda NodaTime.LocalTime.
public static LocalTime ToLocalTime(TimeOnly timeOnly)
Parameters
timeOnlyTimeOnlyThe 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
timeOfDayLocalTimeOfDayThe 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
timeOfDayUtcTimeOfDayThe wrapped UTC time of day.
Returns
- LocalTime
The equivalent NodaTime.LocalTime via FromTicksSinceMidnight(long).