ISO8601d: Integrated formatted dates into ISO8601d

- Eliminated call to Nibbler::getDate.
- Created structure for Named dates and Epochs, still to be integrated.
This commit is contained in:
Paul Beckingham 2015-09-27 02:08:40 -04:00
parent d11b5de3b4
commit f294bc0c2b
2 changed files with 337 additions and 27 deletions

View file

@ -58,7 +58,7 @@ public:
ISO8601d startOfMonth () const;
ISO8601d startOfYear () const;
// static bool valid (const std::string&, const std::string& format = "m/d/Y");
static bool valid (const std::string&, const std::string& format = "");
static bool valid (const int, const int, const int, const int, const int, const int);
static bool valid (const int, const int, const int);
static bool valid (const int, const int);
@ -106,6 +106,9 @@ public:
private:
void clear ();
bool parse_formatted (Nibbler&, const std::string&);
bool parse_named (Nibbler&);
bool parse_epoch (Nibbler&);
bool parse_date_time (Nibbler&);
bool parse_date_time_ext (Nibbler&);
bool parse_date_ext (Nibbler&);