Show / Hide Table of Contents

Interface IFromTimeStampConversionIterator

Provides the DifferenceTicks used to convert from a TimeStamp to ToTimeZone at the time given in the last call to MoveTo(Int64). Also provides methods to directly convert a TimeStamp to a or . 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 IFromTimeStampConversionIterator

Properties

| Improve this Doc View Source

DifferenceTicks

The difference in ticks for a direct conversion from utc timezone to ToTimeZone.

Declaration
long DifferenceTicks { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

ToTimeZone

The timezone that we are converting to.

Declaration
TimeZoneInfo ToTimeZone { get; }
Property Value
Type Description
TimeZoneInfo

Methods

| Improve this Doc View Source

GetDateTime(TimeStamp)

Advances the IFromTimeStampConversionIterator with an internal call to MoveTo(Int64), then performs a conversion and returns the result as a .

Declaration
DateTime GetDateTime(TimeStamp timeStamp)
Parameters
Type Name Description
TimeStamp timeStamp

The time to be converted.

Returns
Type Description
DateTime
| Improve this Doc View Source

GetDateTimeOffset(TimeStamp)

Advances the IFromTimeStampConversionIterator with an internal call to MoveTo(Int64), then performs a conversion and returns the result as a .

Declaration
DateTimeOffset GetDateTimeOffset(TimeStamp timeStamp)
Parameters
Type Name Description
TimeStamp timeStamp

The time to be converted.

Returns
Type Description
DateTimeOffset
| Improve this Doc View Source

GetTicks(TimeStamp)

Advances the IFromTimeStampConversionIterator with an internal call to MoveTo(Int64), then performs a conversion and returns the result as ticks in ToTimeZone.

Declaration
long GetTicks(TimeStamp timeStamp)
Parameters
Type Name Description
TimeStamp timeStamp

The time to be converted.

Returns
Type Description
System.Int64
| Improve this Doc View Source

MoveTo(Int64)

Advances the IFromTimeStampConversionIterator to the given time expressed as ticks utc timezone. Returns true if DifferenceTicks has changed since the last advance, false otherwise.

Declaration
bool MoveTo(long utcTicks)
Parameters
Type Name Description
System.Int64 utcTicks
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX