class to contain date and time parsing information
#include <CsvParams.h>
Public Types | |
| enum | decimal_date_formats { EXCEL , JULIAN , MJULIAN , MATLAB , RFC868 , UNIX } |
Public Member Functions | |
| CsvDateTime (const double &tz_in) | |
| void | updateMaxCol () |
| int | getFixedYear (const double &i_jdn) |
| int | getFixedYear (const int &i_month) |
| int | getFixedHour () |
| bool | isSet () const |
| void | setDateTimeSpec (const std::string &datetime_spec) |
| void | setDateSpec (const std::string &date_spec) |
| void | setTimeSpec (const std::string &time_spec) |
| void | setDecimalDateType (std::string i_decimaldate_type) |
| void | setFixedYear (const int &i_year, const bool &i_auto_wrap) |
| void | setFixedHour (const int &i_hour) |
| bool | parseField (const std::string &fieldname, const size_t &ii) |
| Date | parseDate (const std::vector< std::string > &vecFields) |
| std::string | toString () const |
Public Attributes | |
| size_t | max_dt_col |
| Maximum index of a date/time field (for optimized parsing) More... | |
| bool | auto_wrap |
| if true, dates >= October will be assumed to belong to (year_cst-1) until a date < October is encountered More... | |
| mio::CsvDateTime::CsvDateTime | ( | const double & | tz_in | ) |
| int mio::CsvDateTime::getFixedHour | ( | ) |
| int mio::CsvDateTime::getFixedYear | ( | const double & | i_jdn | ) |
| int mio::CsvDateTime::getFixedYear | ( | const int & | i_month | ) |
| bool mio::CsvDateTime::isSet | ( | ) | const |
| Date mio::CsvDateTime::parseDate | ( | const std::vector< std::string > & | vecFields | ) |
| bool mio::CsvDateTime::parseField | ( | const std::string & | fieldname, |
| const size_t & | ii | ||
| ) |
| void mio::CsvDateTime::setDateSpec | ( | const std::string & | date_spec | ) |
| void mio::CsvDateTime::setDateTimeSpec | ( | const std::string & | datetime_spec | ) |
| void mio::CsvDateTime::setDecimalDateType | ( | std::string | i_decimaldate_type | ) |
| void mio::CsvDateTime::setFixedHour | ( | const int & | i_hour | ) |
| void mio::CsvDateTime::setFixedYear | ( | const int & | i_year, |
| const bool & | i_auto_wrap | ||
| ) |
| void mio::CsvDateTime::setTimeSpec | ( | const std::string & | time_spec | ) |
| std::string mio::CsvDateTime::toString | ( | ) | const |
| void mio::CsvDateTime::updateMaxCol | ( | ) |
| bool mio::CsvDateTime::auto_wrap |
if true, dates >= October will be assumed to belong to (year_cst-1) until a date < October is encountered
| size_t mio::CsvDateTime::max_dt_col |
Maximum index of a date/time field (for optimized parsing)