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
Namespace: FFT.TimeStamps
Assembly: FFT.TimeStamps.dll
Syntax
public interface IFromTimeStampConversionIterator
Properties
| Improve this Doc View SourceDifferenceTicks
The difference in ticks for a direct conversion from utc timezone to ToTimeZone.
Declaration
long DifferenceTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ToTimeZone
The timezone that we are converting to.
Declaration
TimeZoneInfo ToTimeZone { get; }
Property Value
Type | Description |
---|---|
TimeZoneInfo |
Methods
| Improve this Doc View SourceGetDateTime(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 |
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 |
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 |
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 |