|
| Timestamp () |
| Initializes as Jan 1, 0001, 00:00:00.
|
|
| 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.
|
|
Month::Enum | month () const |
| Month component of timestamp.
|
|
unsigned int | day () const |
| day of month component of timestamp Valid values are 1 through 31. More...
|
|
void | date (YearMonthDay &) const |
| Returns date part of timestamp.
|
|
unsigned int | hour () const |
| Hour component of timestamp. More...
|
|
unsigned int | minute () const |
| Minute component of timestamp Valid values are 0 through 59. More...
|
|
unsigned int | second () const |
| Second component of timestamp Valid values are 0 through 59. More...
|
|
unsigned int | millisecond () const |
| Millisecond component of timestamp Valid values are 0 through 999. More...
|
|
unsigned int | microsecond () const |
| Microsecond component of timestamp Valid values are 0 through 999999. More...
|
|
unsigned int | nanosecond () const |
| Nanosecond component of timestamp Valid values are 0 through 999999999. More...
|
|
const TimeSpan & | sinceEpoch () const |
| Time span since Jan 1, 0001, 00:00:00.
|
|
bool | operator== (const Timestamp &) const |
| Compares instance with another one.
|
|
bool | operator!= (const Timestamp &) const |
| Compares instance with another one.
|
|
bool | operator< (const Timestamp &) const |
| Tests whether instance is less than another one.
|
|
std::string | toString (TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
| Returns timestamp text presentation in requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default). More...
|
|
void | toString (std::string &str, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
| Appends timestamp text presentation in requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default). More...
|
|
Represents timestamp without time-zone information.