59 unsigned int hour,
unsigned int minutes,
double seconds);
69 explicit Date(std::string time);
118 bool initialize(
unsigned int year,
unsigned int month,
unsigned int day,
119 unsigned int hour,
unsigned int minutes,
double seconds);
146 unsigned int month();
301 double decimalSeconds = 0);
time translation class
Definition: date.h:26
static double convertISO8601ToEpochTime(const std::string &timeString)
Convert time from ISO8601 time to epoch time.
Definition: date.cpp:507
unsigned int year()
Get the gregorian year.
Definition: date.cpp:257
static std::string encodeDateTime(double t)
Calculate (encode) the date time date string.
Definition: date.cpp:438
unsigned int hour()
Get the gregorian hour.
Definition: date.cpp:272
static double convertDateTimeToEpochTime(const std::string &timeString)
Convert time from date time to epoch time.
Definition: date.cpp:637
static std::string encodeISO8601Time(double t)
Calculate (encode) the ISO8610 date string.
Definition: date.cpp:444
double decodeDateTime(std::string datetime)
Decode the datetime format date string into Gregorian seconds.
Definition: date.cpp:358
std::string date20()
Calculate the 18 character date string.
Definition: date.cpp:315
static std::string convertEpochTimeToISO8601(double epochTime)
Convert time from epoch time to ISO8601.
Definition: date.cpp:450
unsigned int m_nYear
An unsigned integer variable containing the gregorian year.
Definition: date.h:358
std::string ISO8601()
Calculate the ISO8601 date string.
Definition: date.cpp:330
Date()
CDate default constructor.
Definition: date.cpp:38
unsigned int m_nMonth
An unsigned integer variable containing the gregorian month.
Definition: date.h:363
double time()
Get the Gregorian seconds.
Definition: date.cpp:287
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
double m_dSeconds
A double variable containing the gregorian seconds.
Definition: date.h:383
double m_dTime
A double variable containing the Gregorian seconds.
Definition: date.h:388
unsigned int minute()
Get the gregorian minute.
Definition: date.cpp:277
std::string date18()
Calculate the 20 character date string.
Definition: date.cpp:292
std::string dateTime()
Calculate the DateTime date string.
Definition: date.cpp:344
unsigned int m_nMinute
An unsigned integer variable containing the gregorian minute.
Definition: date.h:378
unsigned int day()
Get the gregorian day.
Definition: date.cpp:267
unsigned int m_nDay
An unsigned integer variable containing the gregorian day.
Definition: date.h:368
static double now()
CDate current time function.
Definition: date.cpp:80
static std::string convertDateTimeToISO8601(const std::string &timeString)
Convert time from date time format to ISO8601 format.
Definition: date.cpp:500
unsigned int month()
Get the gregorian month.
Definition: date.cpp:262
double decodeISO8601Time(std::string iso8601)
Decode the ISO8601 date string into Gregorian seconds.
Definition: date.cpp:402
void clear()
CDate clear function.
Definition: date.cpp:69
~Date()
CDate destructor.
Definition: date.cpp:65
double seconds()
Get the gregorian seconds.
Definition: date.cpp:282
unsigned int m_nHour
An unsigned integer variable containing the gregorian hour.
Definition: date.h:373
bool initialize(double time)
CDate initialize function.
Definition: date.cpp:104