OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler  1.11.0
API documentation
Timestamp Class Reference

#include <OnixS/CboeCFE/Trading/BOE/Time.h>

Public Types

typedef UInt64 Ticks
 
typedef UInt32 Year
 
typedef OnixS::CboeCFE::Trading::BOE::Month::Enum Month
 
typedef UInt32 Day
 
typedef UInt32 Hour
 
typedef UInt32 Minute
 
typedef UInt32 Second
 
typedef UInt32 Millisecond
 
typedef UInt32 Microsecond
 
typedef UInt32 Nanosecond
 

Public Member Functions

 Timestamp (Ticks ticks=0) ONIXS_BATS_BOE_NOTHROW
 
 Timestamp (Year year, Month month, Day day, Hour hour=0, Minute minute=0, Second second=0, Nanosecond nanosecond=0)
 
 Timestamp (const Timestamp &other)
 
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
 
Timestamp date () const
 
TimeSpan time () const
 
Ticks sinceEpoch () const ONIXS_BATS_BOE_NOTHROW
 
Timestampoperator= (const Timestamp &other)
 
void swap (Timestamp &other)
 

Static Public Member Functions

static ONIXS_CBOE_CFE_BOE_API Timestamp utcNow ()
 
static ONIXS_CBOE_CFE_BOE_API Timestamp now ()
 

Detailed Description

Definition at line 465 of file Time.h.

Member Typedef Documentation

typedef UInt32 Day

Integral type presenting day component.

Definition at line 480 of file Time.h.

typedef UInt32 Hour

Integral type presenting hour component.

Definition at line 483 of file Time.h.

typedef UInt32 Microsecond

Integral type presenting microsecond component.

Definition at line 495 of file Time.h.

typedef UInt32 Millisecond

Integral type presenting millisecond component.

Definition at line 492 of file Time.h.

typedef UInt32 Minute

Integral type presenting minute component.

Definition at line 486 of file Time.h.

Type presenting month component.

Definition at line 477 of file Time.h.

typedef UInt32 Nanosecond

Integral type presenting nanosecond component.

Definition at line 498 of file Time.h.

typedef UInt32 Second

Integral type presenting second component.

Definition at line 489 of file Time.h.

typedef UInt64 Ticks

Integral type storing internal ticks.

Definition at line 469 of file Time.h.

typedef UInt32 Year

Integral type presenting year component.

Definition at line 472 of file Time.h.

Constructor & Destructor Documentation

Timestamp ( Ticks  ticks = 0)
inlineexplicit

Initializes from number of ticks since epoch.

Definition at line 512 of file Time.h.

Timestamp ( Year  year,
Month  month,
Day  day,
Hour  hour = 0,
Minute  minute = 0,
Second  second = 0,
Nanosecond  nanosecond = 0 
)
inline

Explicit time-stamp initialization.

Input parameters are validated, therefore constructor throws exception if input values do not fit into their valid ranges.

Definition at line 523 of file Time.h.

Timestamp ( const Timestamp other)
inline

Initializes as copy of other instance.

Definition at line 540 of file Time.h.

Member Function Documentation

Timestamp date ( ) const
inline

Timestamp without a time part.

Definition at line 613 of file Time.h.

Day day ( ) const
inline

Day component of given time point.

Definition at line 567 of file Time.h.

Hour hour ( ) const
inline

Hour component of given time point.

Definition at line 577 of file Time.h.

Microsecond microsecond ( ) const
inline

Microsecond component of given time point.

Definition at line 601 of file Time.h.

Millisecond millisecond ( ) const
inline

Millisecond component of given time point.

Definition at line 595 of file Time.h.

Minute minute ( ) const
inline

Minute component of given time point.

Definition at line 583 of file Time.h.

Month month ( ) const
inline

Month component of given time point.

Definition at line 557 of file Time.h.

Nanosecond nanosecond ( ) const
inline

Nanosecond component of given time point.

Definition at line 607 of file Time.h.

static ONIXS_CBOE_CFE_BOE_API Timestamp now ( )
static

Returns current local time.

Timestamp& operator= ( const Timestamp other)
inline

Reinitializes as copy of given instance.

Definition at line 640 of file Time.h.

Second second ( ) const
inline

Second component of given time point.

Definition at line 589 of file Time.h.

Ticks sinceEpoch ( ) const
inline

Number of nanoseconds since the Epoch (01-01-1970).

Definition at line 632 of file Time.h.

void swap ( Timestamp other)
inline

Exchanges value with other instance.

Definition at line 650 of file Time.h.

TimeSpan time ( ) const
inline

Time part of timestamp.

Definition at line 623 of file Time.h.

static ONIXS_CBOE_CFE_BOE_API Timestamp utcNow ( )
static

Returns current UTC time.

Year year ( ) const
inline

Year component of given time point.

Definition at line 547 of file Time.h.


The documentation for this class was generated from the following file: