35 struct ONIXS_EUREX_EMDI_API
Month
196 unsigned long long presentation,
200 Timestamp (
long long totalSeconds,
int subseconds);
208 long long totalSeconds,
int subseconds)
209 : sinceEpoch_(totalSeconds, subseconds)
218 return sinceEpoch_.milliseconds();
225 return sinceEpoch_.microseconds();
232 return sinceEpoch_.nanoseconds();
Represents timestamp without time-zone information.
static Timestamp parse(const std::string &, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec)
Timestamp()
Initializes as Jan 1, 0001, 00:00:00.
unsigned int hour() const
unsigned int millisecond() const
const TimeSpan & sinceEpoch() const
Time span since Jan 1, 0001, 00:00:00.
static Timestamp parse(unsigned long long presentation, TimestampFormat::Enum format=TimestampFormat::YYYYMMDD)
void date(YearMonthDay &) const
Returns date part of timestamp.
void toString(std::string &str, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
static Timestamp epoch()
Epoch.
static Timestamp utcNow()
Timestamp(unsigned int year, Month::Enum month, unsigned int day, unsigned int hour=0, unsigned int minute=0, unsigned int second=0, unsigned int nanosecond=0)
Initializes date-time from all details.
unsigned year() const
Year component of timestamp.
std::string toString(TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
unsigned int nanosecond() const
unsigned int minute() const
Timestamp(Ticks ticks)
Initializes date-time from raw presentantion.
unsigned int microsecond() const
Month::Enum month() const
Month component of timestamp.
unsigned int second() const
std::ostream & operator<<(std::ostream &os, const Message &message)
TimeSpan operator-(const Timestamp &left, const Timestamp &right)
Int64 Ticks
Integral type presenting internal ticks.
Defines all the months in the year.
Enum
Defines all the months in the year.