TwiceAsNice
2019-02-18
|
#include <Date.h>
Static Public Member Functions | |
static Date | now () |
Construct the time stamp at the time of the call. More... | |
static Date | microSeconds (Nice::I64) |
convert the time to microseconds. More... | |
static Date | nanoSeconds (Nice::I64) |
convert the time to nanoseconds. More... | |
static Date | fromMJD (double _mjd) |
Construct a time stamp from modified Julian date. More... | |
static Date | now () |
static Date | microSeconds (Nice::I64) |
static Date | nanoSeconds (Nice::I64) |
static Date | fromMJD (double _mjd) |
Protected Member Functions | |
Date (Nice::I64) | |
Ctor. More... | |
Date (Nice::I64) | |
Additional Inherited Members | |
![]() | |
::Ice::Long | nsec |
|
protected |
Ctor.
Set the time.
_t | Number of nanoseconds since UNIX date zero |
Nice::Date::Date | ( | Nice::DateVar | _t | ) |
Ctor.
Set the time.
_t | Number of nanoseconds since UNIX date zero |
Nice::Date::Date | ( | ) |
Default ctor.
Unix date zero in 1970-01-01
Nice::Date::Date | ( | const timespec & | _t | ) |
Ctor.
Set the time.
_t | UNIX structe with seconds and nanoseconds. |
Nice::Date::Date | ( | const timeval & | _t | ) |
Ctor.
Set the time.
_t | UNIX structe with seconds and microseconds |
|
protected |
Nice::Date::Date | ( | Nice::DateVar | ) |
Nice::Date::Date | ( | ) |
Nice::Date::Date | ( | const timespec & | ) |
Nice::Date::Date | ( | const timeval & | ) |
Nice::Date Nice::Date::date | ( | bool | _utc = false | ) | const |
|
static |
|
static |
Construct a time stamp from modified Julian date.
_mjd | the modified Julian date |
|
inline |
|
inline |
int Nice::Date::microSecond | ( | ) | const |
int Nice::Date::microSecond | ( | ) | const |
|
static |
convert the time to microseconds.
|
static |
convert the time to nanoseconds.
|
static |
Construct the time stamp at the time of the call.
|
static |
Nice::Date::operator IceUtil::Time | ( | ) | const |
Nice::Date::operator IceUtil::Time | ( | ) | const |
Nice::Date::operator Time | ( | ) | const |
Nice::Date::operator Time | ( | ) | const |
Nice::Date::operator time_t | ( | ) | const |
Nice::Date::operator time_t | ( | ) | const |
Nice::Date::operator timespec | ( | ) | const |
Nice::Date::operator timespec | ( | ) | const |
Nice::Date::operator timeval | ( | ) | const |
Nice::Date::operator timeval | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Nice::Time Nice::Date::time | ( | bool | _utc = false | ) | const |
Convert the time into a human-readable string.
_precision | Number of fractional seconds to be printed. |
_utc | If true print a UTC string, else a string in the locale. |
double Nice::Date::toEpoch | ( | ) | const |
double Nice::Date::toEpoch | ( | ) | const |
Convert the time to an Epoch (UTC)
double Nice::Date::toJD | ( | ) | const |
double Nice::Date::toJD | ( | ) | const |
Represent this as a Julian Date.
Nice::I64 Nice::Date::toMicroSeconds | ( | ) | const |
Nice::I64 Nice::Date::toMicroSeconds | ( | ) | const |
double Nice::Date::toMicroSecondsDouble | ( | ) | const |
double Nice::Date::toMicroSecondsDouble | ( | ) | const |
double Nice::Date::toMJD | ( | ) | const |
double Nice::Date::toMJD | ( | ) | const |
Represent this as a modified Julian Date.
Nice::I64 Nice::Date::toNanoSeconds | ( | ) | const |
Nice::I64 Nice::Date::toNanoSeconds | ( | ) | const |
std::string Nice::Date::toString | ( | int | _precision, |
bool | _utc = false , |
||
const char * | _dateStr = "%Y-%m-%d %H:%M:%S" |
||
) | const |
Convert the date/time into a human-readable string.
_precision | Number of fractional seconds to be printed. |
_utc | If true print a UTC string, else a string in the locale. |
__dateStr | A formatting string as in strftime(3) |
std::string Nice::Date::toString | ( | int | _precision, |
bool | _utc = false , |
||
const char * | _dateStr = "%Y-%m-%d %H:%M:%S" |
||
) | const |