ISO8601d: Added ::daysInYear and tests
This commit is contained in:
@@ -818,6 +818,13 @@ int ISO8601d::daysInMonth (int month, int year)
|
||||
return days[month - 1];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Static
|
||||
int ISO8601d::daysInYear (int year)
|
||||
{
|
||||
return ISO8601d::leapYear (year) ? 366 : 365;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Static
|
||||
int ISO8601d::dayOfWeek (const std::string& input)
|
||||
|
||||
Reference in New Issue
Block a user