OnixS C++ FIX Engine 2.79.1.0
Timestamp Class Reference

Timestamps related functionality.

List of all members.

Public Member Functions

 Timestamp ()
Year year () const
Month month () const
Day day () const
Hour hour () const
Minute minute () const
Second second () const
Millisecond millisecond () const
Microsecond microsecond () const
Nanosecond nanosecond () const

Static Public Member Functions

static Timestamp getUtc ()
static Timestamp getLocal ()
static std::string getUtcTimestampWithMilliseconds ()
static std::string getUtcTimestampWithNanoseconds ()

Friends

class TimeManager

Member Function Documentation

Day day ( ) const [inline]

Current day of month. Valid values are 1 through 31.

static Timestamp getLocal ( ) [static]

Returns the current local time.

Note:
Timestamp resolution depends on capabilities of an operating system.
static Timestamp getUtc ( ) [static]

Returns the current UTC time.

Note:
Timestamp resolution depends on capabilities of an operating system.
Hour hour ( ) const [inline]

Current hour. Valid values are 0 through 23.

Microsecond microsecond ( ) const [inline]

Current microsecond. Valid values are 0 through 999999.

Millisecond millisecond ( ) const [inline]

Current millisecond. Valid values are 0 through 999.

Minute minute ( ) const [inline]

Current minute. Valid values are 0 through 59.

Nanosecond nanosecond ( ) const [inline]

Current nanosecond. Valid values are 0 through 999999999.

Second second ( ) const [inline]

Current second. Valid values are 0 through 59.