sead::DateUtil namespace

Functions

auto isLeapYear(u32 year) -> bool
auto calcWeekDay(const CalendarTime::Year& year, const CalendarTime::Month& month, const CalendarTime::Day& day) -> CalendarTime::Week
void calcSecondToCalendarSpan(CalendarSpan* out_span, u64 seconds)
auto parseW3CDTFString(CalendarTime* out_time, CalendarSpan* out_span, const SafeString& string) -> bool
auto parseW3CDTFSubString(bool* ok, u32* value, SafeString* str, s32* str_length, char* out_separator, s32 parse_length, const SafeString& separators, bool allow_null_separator, u32 value_min, u32 value_max) -> bool
static auto parseW3CDTFStringImpl(u32* year, u32* month, u32* day, u32* hour, u32* minute, u32* second, s32* tz_hour, s32* tz_minute, const SafeString& string) -> bool

Function documentation

bool sead::DateUtil::isLeapYear(u32 year)

CalendarTime::Week sead::DateUtil::calcWeekDay(const CalendarTime::Year& year, const CalendarTime::Month& month, const CalendarTime::Day& day)

void sead::DateUtil::calcSecondToCalendarSpan(CalendarSpan* out_span, u64 seconds)

bool sead::DateUtil::parseW3CDTFString(CalendarTime* out_time, CalendarSpan* out_span, const SafeString& string)

bool sead::DateUtil::parseW3CDTFSubString(bool* ok, u32* value, SafeString* str, s32* str_length, char* out_separator, s32 parse_length, const SafeString& separators, bool allow_null_separator, u32 value_min, u32 value_max)

static bool sead::DateUtil::parseW3CDTFStringImpl(u32* year, u32* month, u32* day, u32* hour, u32* minute, u32* second, s32* tz_hour, s32* tz_minute, const SafeString& string)