mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Dates: Converted from Date to ISO8601d
This commit is contained in:
parent
6c02c03674
commit
23c2958f44
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue