Interface IToTimeStampConversionIterator
Provides the DifferenceTicks used to convert from FromTimeZone to Utc timezone at the time given in the last call to MoveTo(Int64). Also provides the direct GetTimeStamp(Int64) method. IMPORTANT!! Inputs must be in SEQUENTIAL ascending chronological order to get correct results from a conversion iterator.
Namespace: FFT.TimeStamps
Assembly: FFT.TimeStamps.dll
Syntax
public interface IToTimeStampConversionIterator
Properties
| Improve this Doc View SourceDifferenceTicks
The difference in ticks for a direct conversion from FromTimeZone to Utc timezone. IMPORTANT!! NOT to be confused with the utc offset for either timezone.
Declaration
long DifferenceTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
FromTimeZone
The timezone that we are converting from.
Declaration
TimeZoneInfo FromTimeZone { get; }
Property Value
Type | Description |
---|---|
TimeZoneInfo |
Methods
| Improve this Doc View SourceGetTimeStamp(Int64)
Advances the IToTimeStampConversionIterator with an internal call to MoveTo(Int64), then performs a conversion and returns the result as a TimeStamp.
Declaration
TimeStamp GetTimeStamp(long ticksTimeZone)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ticksTimeZone | The time in FromTimeZone expressed in ticks. |
Returns
Type | Description |
---|---|
TimeStamp |
MoveTo(Int64)
Advances the ITimeZoneConversionIterator to the given time expressed as ticks in FromTimeZone. Returns true if DifferenceTicks has changed since the last advance, false otherwise.
Declaration
bool MoveTo(long ticksTimeZone)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ticksTimeZone |
Returns
Type | Description |
---|---|
System.Boolean |