| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | #include <prim/seadSafeString.h> |
| 5 | #include <time/seadCalendarTime.h> |
| 6 | |
| 7 | namespace sead |
| 8 | { |
| 9 | class CalendarSpan; |
| 10 | |
| 11 | namespace DateUtil |
| 12 | { |
| 13 | bool isLeapYear(u32 year); |
| 14 | |
| 15 | CalendarTime::Week calcWeekDay(const CalendarTime::Year& year, const CalendarTime::Month& month, |
| 16 | const CalendarTime::Day& day); |
| 17 | |
| 18 | void calcSecondToCalendarSpan(CalendarSpan* out_span, u64 seconds); |
| 19 | |
| 20 | bool parseW3CDTFString(CalendarTime* out_time, CalendarSpan* out_span, const SafeString& string); |
| 21 | } // namespace DateUtil |
| 22 | } // namespace sead |
| 23 |