opnsense-src/lib/libc/stdtime
Dag-Erling Smørgrav 4285e024ba strptime: Fix day-of-week calculation.
The day-of-week calculation used the raw year value without adjusting
for TM_YEAR_BASE, so it was off by one for 300 years out of every 400;
it just happened to be correct for 1901 through 2000.  It also used a
loop where a simple addition would have sufficed.

While here, simplify our version of Gauss's algorithm, and document
that we assume the Gregorian calendar.

MFC after:	1 week
PR:		282916
Reviewed by:	imp, allanjude, philip
Differential Revision:	https://reviews.freebsd.org/D47977
2024-12-09 13:38:22 +01:00
..
ctime.3 libc: Improve description of mktime() / timegm(). 2024-03-27 11:03:37 +01:00
Makefile.inc libc: Move tzset.3 to stdtime 2024-03-11 22:19:31 -06:00
strftime.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
strftime.c Update tzcode to 2024a. 2024-02-13 21:31:41 +01:00
strptime.3 strptime: Fix day-of-week calculation. 2024-12-09 13:38:22 +01:00
strptime.c strptime: Fix day-of-week calculation. 2024-12-09 13:38:22 +01:00
Symbol.map timezone: Move to the XSI/POSIX definition for timezone. 2024-03-11 22:19:31 -06:00
time32.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
timelocal.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
timelocal.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
tzset.3 libc: Move tzset.3 to stdtime 2024-03-11 22:19:31 -06:00