mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 16:53:08 +02:00
Code Cleanup
- Remove the code related to the format "day of year" (number of day starting from the January 1) as mktime does not allow to specify it with the field tm_yday. - Cleaner check of the date (everything is done by Date::valid). - Correct hour, minute and second is also checked.
This commit is contained in:
parent
b5cd5ea188
commit
384be4b249
4 changed files with 20 additions and 22 deletions
|
@ -67,6 +67,7 @@ public:
|
|||
static time_t easter (int year);
|
||||
static bool leapYear (int);
|
||||
static int daysInMonth (int, int);
|
||||
static int daysInYear (int);
|
||||
static std::string monthName (int);
|
||||
static void dayName (int, std::string&);
|
||||
static std::string dayName (int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue