16 #include <boost/assign/list_of.hpp>
18 namespace assign = boost::assign;
19 using boost::unordered_map;
45 const char* DATE_TIME_CTX_FMT =
"yyyy-MM-dd HH:mm:ss.SSSSSSSSS";
46 const int FRACTIONAL_MAX_LEN = 9;
47 for (
int i = FRACTIONAL_MAX_LEN; i >= 0; --i) {
54 for (
int i = FRACTIONAL_MAX_LEN; i >= 0; --i) {
79 for (
int i = FRACTIONAL_MAX_LEN; i >= 0; --i) {
static DateTimeFormatContext DEFAULT_DATE_TIME_CTX[10]
static const int DEFAULT_TIME_FRAC_FMT_LEN
static bool ParseFormatTokens(DateTimeFormatContext *dt_ctx)
static boost::unordered_map< StringValue, int > REV_MONTH_INDEX
Lazily initialized pseudo-constant hashmap for mapping month names to an index.
void Reset(const char *fmt, int fmt_len)
static bool initialized_
Used to indicate if the parsing state has been initialized.
static const int DEFAULT_DATE_TIME_FMT_LEN
static const int DEFAULT_DATE_FMT_LEN
Constants to hold default format lengths.
static DateTimeFormatContext DEFAULT_TIME_FRAC_CTX[10]
static DateTimeFormatContext DEFAULT_TIME_CTX
static DateTimeFormatContext DEFAULT_SHORT_DATE_TIME_CTX
static DateTimeFormatContext DEFAULT_ISO_DATE_TIME_CTX[10]
static const int DEFAULT_SHORT_DATE_TIME_FMT_LEN
static DateTimeFormatContext DEFAULT_DATE_CTX
static DateTimeFormatContext DEFAULT_SHORT_ISO_DATE_TIME_CTX
static const int DEFAULT_TIME_FMT_LEN