vega
|
#include <vega/date_time.h>
Public Member Functions | |
DateTime (const std::string &s) | |
DateTime (const std::shared_ptr< DateTime > &lower, const std::shared_ptr< DateTime > &upper) | |
bool | is_range () const |
const std::shared_ptr< const DateTime > & | lower () const |
const std::shared_ptr< const DateTime > & | upper () const |
bool | operator== (const DateTime &other) const |
bool | operator!= (const DateTime &other) const |
std::string | str () const |
void | set_string (const std::string &s) |
Public Attributes | |
std::shared_ptr< const RegexString > | m_date_time |
std::shared_ptr< const DateTime > | m_lower |
std::shared_ptr< const DateTime > | m_upper |
Static Public Attributes | |
static const std::shared_ptr< const std::regex > | SINGLE_DATE_TIME_REGEX |
static const std::shared_ptr< const std::regex > | DATE_TIME_RANGE_REGEX |
The Date Time common data type. Indicates a concatenated date-time ASCII string in the format YYYYMMDDHHMMSS.FFFFFF&ZZZZ. The components of this string, from left to right, are YYYY = Year, MM = Month, DD = Day, HH = Hour, MM = Minute, SS = Second, FFFFFF = Fraction Second, & = '+' or '-', and ZZZZ = Hours and Minutes of offset. &ZZZZ is an optional suffix for plus/minus offset from Coordinated Universal Time. A component that is omitted from the string is termed a null componennt. Trailing null components of Date Time are ignored. Non-trailing null components are prohibited, given that the optional suffix is not considered as a component.
26 bytes maximum (formatted string)
|
explicit |
vega::DateTime::DateTime | ( | const std::shared_ptr< DateTime > & | lower, |
const std::shared_ptr< DateTime > & | upper | ||
) |
bool vega::DateTime::is_range | ( | ) | const |
const std::shared_ptr<const DateTime>& vega::DateTime::lower | ( | ) | const |
bool vega::DateTime::operator!= | ( | const DateTime & | other | ) | const |
bool vega::DateTime::operator== | ( | const DateTime & | other | ) | const |
void vega::DateTime::set_string | ( | const std::string & | s | ) |
std::string vega::DateTime::str | ( | ) | const |
const std::shared_ptr<const DateTime>& vega::DateTime::upper | ( | ) | const |
|
static |
std::shared_ptr<const RegexString> vega::DateTime::m_date_time |
std::shared_ptr<const DateTime> vega::DateTime::m_lower |
std::shared_ptr<const DateTime> vega::DateTime::m_upper |
|
static |