31struct ONIXS_ESPEED_ITCH_API
Month
199 unsigned long long presentation,
203 Timestamp (
long long totalSeconds,
int subseconds);
205 friend struct HandlerCore::Common::TimeHelper;
211 long long totalSeconds,
int subseconds)
212 : sinceEpoch_ (totalSeconds, subseconds)
221 return sinceEpoch_.milliseconds();
228 return sinceEpoch_.microseconds();
235 return sinceEpoch_.nanoseconds();
#define ONIXS_ESPEED_ITCH_NAMESPACE_BEGIN
#define ONIXS_ESPEED_ITCH_NAMESPACE_END
bool operator<(const StrRef &left, const StrRef &right)
Establishes order over string refs.
bool operator==(const StrRef &left, const StrRef &right)
Compares StrRef instance with another one.
bool operator!=(const StrRef &left, const StrRef &right)
Compares with another instance.
TimeSpan operator-(const Timestamp &left, const Timestamp &right)
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.
void date(YearMonthDay &) const
Returns date part of timestamp.
void toString(std::string &str, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
static Timestamp parse(unsigned long long presentation, TimestampFormat::Enum format)
Parses timestamp from its numeric presentation.
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
Timestamp(RawTimestamp ts)
unsigned int minute() const
unsigned int microsecond() const
Month::Enum month() const
Month component of timestamp.
unsigned int second() const
Defines all the months in the year.
Enum
Defines all the months in the year.