The Timescale type exposes the following members.

Methods

  Name Description
Public method Equals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType..::..Equals(Object).)
Public method Equals(Timescale)
Tests if this Timescale is considered equal to another.
Public method Static member FromEpoch(Int64, Int64)
Create a new Timescale instance from the epoch in days and the number of ticks per day.
Public method Static member FromEpoch(Int32, Int32, Int32, Int64)
Create a new Timescale instance from the epoch day/month/year and the number of ticks per day.
Public method GetHashCode
Returns the hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public method ScaleToNet
Converts ticks scaled in the scale of this instance to .Net DateTime ticks.
Public method ToString
Returns the fully qualified type name of this instance.
(Overrides ValueType..::..ToString()()()().)

Operators

  Name Description
Public operator Static member Equality
Equality operator.
Public operator Static member Inequality
Inequality operator.

Fields

  Name Description
Public field Static member MicrosecondsPerDay
The microseconds per day = 86400000000.
Public field Static member MillisecondsPerDay
The milliseconds per day = 86400000.
Public field Static member SecondsPerDay
The seconds per day = 86400.

Properties

  Name Description
Public property Epoch
The epoch as the number of days from 1.1.0000.
Public property Static member Java
A Timescale instance with an epoch of 1.1.1970 and Millisecond resolution.
Public property Static member Net
A Timescale instance with an epoch of 1.1.0000 and 0.1 Microsecond resolution.
Public property TicksPerDay
The number of ticks counted per day.
Public property WellKnownName
Returns "Java" or "Net" if this instance has the epoch and ticks per day of these well known scales. "Custom" otherwise.

See Also