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