vega
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
vega::DateTime Class Reference

Date Time. More...

#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 RegexStringm_date_time
 
std::shared_ptr< const DateTimem_lower
 
std::shared_ptr< const DateTimem_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
 

Detailed Description

Date Time.

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)

Constructor & Destructor Documentation

◆ DateTime() [1/2]

vega::DateTime::DateTime ( const std::string &  s)
explicit

◆ DateTime() [2/2]

vega::DateTime::DateTime ( const std::shared_ptr< DateTime > &  lower,
const std::shared_ptr< DateTime > &  upper 
)

Member Function Documentation

◆ is_range()

bool vega::DateTime::is_range ( ) const

◆ lower()

const std::shared_ptr<const DateTime>& vega::DateTime::lower ( ) const

◆ operator!=()

bool vega::DateTime::operator!= ( const DateTime other) const

◆ operator==()

bool vega::DateTime::operator== ( const DateTime other) const

◆ set_string()

void vega::DateTime::set_string ( const std::string &  s)

◆ str()

std::string vega::DateTime::str ( ) const

◆ upper()

const std::shared_ptr<const DateTime>& vega::DateTime::upper ( ) const

Member Data Documentation

◆ DATE_TIME_RANGE_REGEX

const std::shared_ptr<const std::regex> vega::DateTime::DATE_TIME_RANGE_REGEX
static

◆ m_date_time

std::shared_ptr<const RegexString> vega::DateTime::m_date_time

◆ m_lower

std::shared_ptr<const DateTime> vega::DateTime::m_lower

◆ m_upper

std::shared_ptr<const DateTime> vega::DateTime::m_upper

◆ SINGLE_DATE_TIME_REGEX

const std::shared_ptr<const std::regex> vega::DateTime::SINGLE_DATE_TIME_REGEX
static

The documentation for this class was generated from the following file: