47 void assign(
const std::string& a_s);
52 const std::string
str(
void)
const;
58 int month(
void)
const;
76 const std::string
make_str_(
const int a_resolution)
const;
void clear(void)
Clear the timestamp.
resolution_type resolution(void) const
Return the timestamp resolution.
int year(void) const
Return the timestamp year.
int day(void) const
Return the timestamp day.
Basic types definitions and templates.
const timestamp null_timestamp(0, 1, 1, 0, 0, 0)
A null timestamp.
bool is_timestamp(const std::string &a_s)
Return true if the string is a valid timestamp.
resolution_type m_resolution
int month(void) const
Return the timestamp month.
bool operator<(const timestamp &a_t) const
Comparison.
bool operator>(const timestamp &a_t) const
Comparison.
void assign(const timestamp &a_t)
Set the timestamp to the value of another timestamp.
const timestamp max_timestamp(9999, 12, 31, 23, 59, 59)
The maximum timestamp value.
int second(void) const
Return the timestamp second.
void set(void)
Set the timestamp to the current time and date.
timestamp & operator=(const timestamp &a_t)
Assignment.
const std::string make_str_(const int a_resolution) const
Generate a string.
int hour(void) const
Return the timestamp hour.
bool operator==(const timestamp &a_t) const
Comparison.
const std::string str(void) const
Generate a string.
const timestamp min_timestamp(null_timestamp)
The minimum timestamp value.
int minute(void) const
Return the timestamp minute.