Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-08-26 | AK+LibC+LibCore: Have fewer implementations of day_of_week | Nico Weber | |
The implementation in LibC did a timestamp->day-of-week conversion which looks like a valuable thing to have. But we only need it in time_to_tm, where we already computed year/month/day -- so let's consolidate on the day_of_week function in DateTime (which is getting extracted to AK). | |||
2020-08-26 | AK+LibC+LibCore: Have fewer implementations of days_in_month | Nico Weber | |
2020-08-26 | AK+LibCore+Kernel: Have fewer implementations of day_of_year | Nico Weber | |
The JS tests pointed out that the implementation in DateTime had an off-by-one in the month when doing the leap year check, so this change fixes that bug. |