OnixS C++ B3 BOE Binary Order Entry 1.3.0
API Documentation
Loading...
Searching...
No Matches
TimeOfDay Class Reference

Public Member Functions

 TimeOfDay () noexcept
 TimeOfDay (Hours hours, Minutes minutes, Seconds=0) noexcept
Hours hours () const noexcept
Minutes minutes () const noexcept
Seconds seconds () const noexcept
Seconds sinceMidnight () const noexcept
std::string toString () const
bool operator== (const TimeOfDay &other) const noexcept
bool operator!= (const TimeOfDay &other) const noexcept

Static Public Member Functions

static TimeOfDay now ()
static TimeOfDay midnight () noexcept
static TimeOfDay bad ()
static TimeOfDay parse (const std::string &)

Detailed Description

Definition at line 70 of file SessionSchedule.h.

Constructor & Destructor Documentation

◆ TimeOfDay() [1/2]

TimeOfDay ( )
noexcept

◆ TimeOfDay() [2/2]

TimeOfDay ( Hours hours,
Minutes minutes,
Seconds = 0 )
noexcept

Member Function Documentation

◆ bad()

TimeOfDay bad ( )
static
Returns
the instance of an ill-formed time of day.

◆ hours()

Hours hours ( ) const
noexcept
Returns
hours.

◆ midnight()

TimeOfDay midnight ( )
staticnoexcept
Returns
the 'Zero' point of the time of day.

◆ minutes()

Minutes minutes ( ) const
noexcept
Returns
minutes.

◆ now()

TimeOfDay now ( )
static
Returns
the current time of day.

◆ operator!=()

bool operator!= ( const TimeOfDay & other) const
inlinenoexcept

Checks whether the instance is unequal to the given one.

Definition at line 129 of file SessionSchedule.h.

◆ operator==()

bool operator== ( const TimeOfDay & other) const
inlinenoexcept

Checks whether the instance is equal to the given one.

Definition at line 123 of file SessionSchedule.h.

◆ parse()

TimeOfDay parse ( const std::string & )
static

Parses the time of day from the given string presentation.

◆ seconds()

Seconds seconds ( ) const
noexcept
Returns
seconds.

◆ sinceMidnight()

Seconds sinceMidnight ( ) const
inlinenoexcept
Returns
the total number of seconds since the midnight.

Definition at line 117 of file SessionSchedule.h.

◆ toString()

std::string toString ( ) const
Returns
the string presentation.