Class BclDateTimeZone
Representation of a time zone converted from a
TimeZoneInfo from the Base Class Library.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Inheritance
BclDateTimeZone
Assembly: NodaTime.dll
Syntax
public sealed class BclDateTimeZone : DateTimeZone
Properties
DisplayName
Gets the display name associated with the time zone, as provided by the Base Class Library.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public string DisplayName { get; }
Property Value
Type |
Description |
string |
The display name associated with the time zone, as provided by the Base Class Library. |
OriginalZone
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public TimeZoneInfo OriginalZone { get; }
Property Value
Methods
ForSystemDefault()
Returns a time zone converted from the BCL representation of the system local time zone.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public static BclDateTimeZone ForSystemDefault()
Returns
Exceptions
FromTimeZoneInfo(TimeZoneInfo)
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public static BclDateTimeZone FromTimeZoneInfo(TimeZoneInfo bclZone)
Parameters
Type |
Name |
Description |
TimeZoneInfo |
bclZone |
The original time zone to take information from. |
Returns
GetZoneInterval(Instant)
Gets the zone interval for the given instant; the range of time around the instant in which the same Offset
applies (with the same split between standard time and daylight saving time, and with the same offset).
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public override ZoneInterval GetZoneInterval(Instant instant)
Parameters
Returns
Overrides
See Also