dxFeed .Net API
5.8.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Value class for period of time with support for ISO8601 duration format. More...
Public Member Functions | |
override string | ToString () |
long | GetTime () |
Returns value in milliseconds. More... | |
long | GetNanos () |
Returns value in nanoseconds. More... | |
override bool | Equals (object o) |
override int | GetHashCode () |
Static Public Member Functions | |
static TimePeriod | ValueOf (long value) |
Returns TimePeriod with value milliseconds. More... | |
static TimePeriod | ValueOf (string value) |
Returns TimePeriod represented with a given string. More... | |
Static Public Attributes | |
static readonly TimePeriod | ZERO = new TimePeriod(0) |
Time-period of zero. More... | |
Protected Member Functions | |
TimePeriod (long value) | |
Static Protected Member Functions | |
static long | Parse (string value) |
Private Attributes | |
long | value |
Value class for period of time with support for ISO8601 duration format.
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Returns value in nanoseconds.
|
inline |
Returns value in milliseconds.
|
inlinestaticprotected |
|
inline |
|
inlinestatic |
Returns TimePeriod with value milliseconds.
value | Value in milliseconds. |
|
inlinestatic |
Returns TimePeriod represented with a given string.
Allowable format is ISO8601 duration, but there are some simplifications and modifications available: Letters are case insensitive. Letters "P" and "T" can be omitted. Letter "S" can be also omitted. In this case last number will be supposed to be seconds. Number of seconds can be fractional. So it is possible to define duration accurate within milliseconds. Every part can be omitted. It is supposed that it's value is zero then.
value | String representation. |
FormatException | if cannot parse value. |
|
private |
|
static |
Time-period of zero.