Table of Contents

Method GetLocalScheduleTimeZoneInfo

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

GetLocalScheduleTimeZoneInfo(DateTimeZone)

Returns the wrapped TimeZoneInfo when zone is a NodaTime.TimeZones.BclDateTimeZone; otherwise returns Local so callers still receive a concrete zone (non-BCL zones have no single BCL equivalent).

public static TimeZoneInfo GetLocalScheduleTimeZoneInfo(DateTimeZone zone)

Parameters

zone DateTimeZone

The zone used for local calendar-day and local zoned projections.

Returns

TimeZoneInfo

NodaTime.TimeZones.BclDateTimeZone.OriginalZone when applicable; otherwise Local.