Dates: Converted from Date to ISO8601d
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <Dates.h>
|
#include <Dates.h>
|
||||||
#include <ISO8601.h>
|
#include <ISO8601.h>
|
||||||
#include <Date.h>
|
|
||||||
#include <Lexer.h>
|
#include <Lexer.h>
|
||||||
#include <CLI2.h>
|
#include <CLI2.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
@@ -39,14 +38,14 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static bool isMonth (const std::string& name, int& i)
|
static bool isMonth (const std::string& name, int& i)
|
||||||
{
|
{
|
||||||
i = Date::monthOfYear (name) - 1;
|
i = ISO8601d::monthOfYear (name) - 1;
|
||||||
return i != -2 ? true : false;
|
return i != -2 ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static bool isDay (const std::string& name, int& i)
|
static bool isDay (const std::string& name, int& i)
|
||||||
{
|
{
|
||||||
i = Date::dayOfWeek (name);
|
i = ISO8601d::dayOfWeek (name);
|
||||||
return i != -1 ? true : false;
|
return i != -1 ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user