248 picoseconds_(subseconds)
256 return totalSeconds_;
#define ONIXS_FIXENGINE_API
The time span related functionality.
Microsecond microsecond() const
static Timestamp parse(const std::string &, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec)
Year year() const
The current year.
Timestamp(Year year, Month::Enum month, Day day, Hour hour=0, Minute minute=0, Second second=0, Nanosecond nanosecond=0)
Initializes date-time from all details.
TotalNanoseconds toUnixNanosecondTimestamp() const
Returns the nanosecond timestamp since the Unix epoch.
Timestamp(Year year, Month::Enum month, Day day, Hour hour, Minute minute, Second second, Picosecond picosecond)
Initializes date-time from all details.
Timestamp()
Constructs an uninitialized instance.
void date(YearMonthDay &) const
Returns the date part of the timestamp.
void toString(std::string &str, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
Nanosecond nanosecond() const
static Timestamp parseWithoutFormat(const std::string &)
std::string toString(TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
TotalSeconds totalSeconds() const
The total number of seconds since Jan 1, 0001, 00:00:00.
Timestamp(TotalNanoseconds unixTimestampNanoseconds)
Initializes from nanoseconds since Jan 1, 1970, 00:00:00 (Unix epoch).
Millisecond millisecond() const
Month::Enum month() const
The current month.
Picosecond picosecond() const
HugeInterval TotalNanoseconds
HugeInterval TotalSeconds
Defines all the months in the year.
static const Picoseconds PicosecondsPerMicrosecond
static const Picoseconds PicosecondsPerNanosecond
static const Picoseconds PicosecondsPerMillisecond