Class TimeZoneCalculator.TimeZoneSegment
Represents a period of time in which a particular timezone has a consistent properties such as offset from UTC, ambiguity and validity.
Inheritance
Namespace: FFT.TimeStamps
Assembly: FFT.TimeStamps.dll
Syntax
public sealed class TimeZoneSegment : object
Properties
| Improve this Doc View SourceEndTicks
The end time of the TimeZoneCalculator.TimeZoneSegment, expressed in ticks in the timezone specified by SegmentKind. The segment itself is EXCLUSIVE of this time value. This time value is also the begin time of the next segment.
Declaration
public long EndTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
IsAmbiguous
When SegmentKind is TimeZone, this value is true if it falls in a period of time which has two or more UTC equivalents. Typically this happens at the end of a daylight savings period, when the clock skips backward an hour or so, repeating the most recent times.
Declaration
public bool IsAmbiguous { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInvalid
When SegmentKind is TimeZone, this value is true if it falls in a period of time which does not exist and has no UTC equivalent. Typically this happens at the beginning of a daylight savings, when the clock skips forward an hour or so.
Declaration
public bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Next
Gets the next segment.
Declaration
public TimeZoneCalculator.TimeZoneSegment Next { get; }
Property Value
Type | Description |
---|---|
TimeZoneCalculator.TimeZoneSegment |
OffsetTicks
The UTC offset for the timezone during this TimeZoneCalculator.TimeZoneSegment. When IsInvalid or IsAmbiguous is true, this value will contain the STANDARD offset for the timezone.
Declaration
public long OffsetTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Previous
Gets the previous segment.
Declaration
public TimeZoneCalculator.TimeZoneSegment Previous { get; }
Property Value
Type | Description |
---|---|
TimeZoneCalculator.TimeZoneSegment |
SegmentKind
Identifies the timezone type in which StartTicks and EndTicks are expressed.
Declaration
public TimeKind SegmentKind { get; }
Property Value
Type | Description |
---|---|
TimeKind |
StartTicks
The begin time of the TimeZoneCalculator.TimeZoneSegment, expressed in ticks in the timezone specified by SegmentKind.
Declaration
public long StartTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |