mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Added ::startOfYear
This commit is contained in:
parent
b6aced8726
commit
da88eefe2b
2 changed files with 7 additions and 0 deletions
|
@ -860,6 +860,12 @@ ISO8601d ISO8601d::startOfMonth () const
|
||||||
return ISO8601d (month (), 1, year ());
|
return ISO8601d (month (), 1, year ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
ISO8601d ISO8601d::startOfYear () const
|
||||||
|
{
|
||||||
|
return ISO8601d (1, 1, year ());
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Static
|
// Static
|
||||||
bool ISO8601d::leapYear (int year)
|
bool ISO8601d::leapYear (int year)
|
||||||
|
|
|
@ -49,6 +49,7 @@ public:
|
||||||
ISO8601d startOfDay () const;
|
ISO8601d startOfDay () const;
|
||||||
ISO8601d startOfWeek () const;
|
ISO8601d startOfWeek () const;
|
||||||
ISO8601d startOfMonth () const;
|
ISO8601d startOfMonth () const;
|
||||||
|
ISO8601d startOfYear () const;
|
||||||
|
|
||||||
static bool leapYear (int);
|
static bool leapYear (int);
|
||||||
static int daysInMonth (int, int);
|
static int daysInMonth (int, int);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue