mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
d11b5de3b4
commit
f294bc0c2b
2 changed files with 337 additions and 27 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue