|
| Timestamp () |
| Initializes as Jan 1, 1970, 00:00:00.
|
|
| Timestamp (UInt32 year, Month month, UInt32 day) |
| Initializes as date with zero time component. More...
|
|
| Timestamp (UInt32 year, Month month, UInt32 day, UInt32 hour, UInt32 minute, UInt32 second, UInt32 nanosecond) |
| Explicit timestamp initialization. More...
|
|
| Timestamp (const Timestamp &other) |
| Initializes as copy of other instance.
|
|
UInt32 | year () const |
| Year component of timestamp.
|
|
Month | month () const |
| Month component of timestamp.
|
|
UInt32 | day () const |
| Day component of timestamp.
|
|
UInt32 | hour () const |
| Hour component of timestamp.
|
|
UInt32 | minute () const |
| Minute component of timestamp.
|
|
UInt32 | second () const |
| Second component of timestamp.
|
|
UInt32 | millisecond () const |
| Millisecond component of timestamp.
|
|
UInt32 | microsecond () const |
| Microsecond component of timestamp.
|
|
UInt32 | nanosecond () const |
| Nanosecond component of timestamp.
|
|
Timestamp | date () const |
| Returns timestamp without time part.
|
|
TimeSpan | time () const |
| Return time part of timestamp.
|
|
DayOfWeek | dayOfWeek () const |
| Returns day of the week.
|
|
bool | operator== (const Timestamp &other) const |
| Compares with other instance for equality.
|
|
bool | operator!= (const Timestamp &other) const |
| Compares with other instance for inequality.
|
|
bool | operator< (const Timestamp &other) const |
| Checks whether timestamp is less than other one.
|
|
bool | operator> (const Timestamp &other) const |
| Checks whether timestamp is greater than other one.
|
|
Timestamp & | operator+= (const TimeSpan &span) |
| Adds time interval to given timestamp.
|
|
Timestamp & | operator-= (const TimeSpan &span) |
| Subtracts time interval from given timestamp.
|
|
Timestamp & | operator= (const Timestamp &other) |
| Re-initializes as copy of other timestamp.
|
|
std::string | toString (TimestampFormat format=TimestampFormats::YYYYMMDDHHMMSSnsec) const |
| Returns text presentation of timestamp using specified presentation format. More...
|
|
void | toString (std::string &str, TimestampFormat format=TimestampFormats::YYYYMMDDHHMMSSnsec) const |
| Returns text presentation of timestamp using specified presentation format. More...
|
|
UInt64 | toUnixTimestamp (SinceEpochUnit unit) const |
| Converts timestamp into its numeric presentation (Unix timestamp in nanoseconds or days since 01-01-1970 UTC) as it's used by the CME Globex. More...
|
|
|
static Timestamp | now () |
| Return timestamp that is current date and time expressed as local time. More...
|
|
static void | now (Timestamp &) |
| Return timestamp that is current date and time expressed as local time. More...
|
|
static Timestamp | utcNow () |
| Return timestamp that is current date and time expressed as UTC time. More...
|
|
static void | utcNow (Timestamp &) |
| Return timestamp that is current date and time expressed as UTC time. More...
|
|
static Timestamp | deserialize (const StringRef &) |
| De-serializes timestamp from text presentation.
|
|
static Timestamp | fromUnixTimestamp (UInt64 sinceEpoch, SinceEpochUnit unit) |
| Converts timestamp from its numeric presentation (Unix timestamp in nanoseconds or days since 01-01-1970 UTC) as it's used by the CME Globex. More...
|
|
static Timestamp | maxTimestamp () |
| Returns the maximal possible timestamp (year 2554)
|
|
Represents timestamp without time-zone information.