Show / Hide Table of Contents

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
System.Object
TimeZoneCalculator.TimeZoneSegment
Namespace: FFT.TimeStamps
Assembly: FFT.TimeStamps.dll
Syntax
public sealed class TimeZoneSegment : object

Properties

| Improve this Doc View Source

EndTicks

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Next

Gets the next segment.

Declaration
public TimeZoneCalculator.TimeZoneSegment Next { get; }
Property Value
Type Description
TimeZoneCalculator.TimeZoneSegment
| Improve this Doc View Source

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
| Improve this Doc View Source

Previous

Gets the previous segment.

Declaration
public TimeZoneCalculator.TimeZoneSegment Previous { get; }
Property Value
Type Description
TimeZoneCalculator.TimeZoneSegment
| Improve this Doc View Source

SegmentKind

Identifies the timezone type in which StartTicks and EndTicks are expressed.

Declaration
public TimeKind SegmentKind { get; }
Property Value
Type Description
TimeKind
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX