opnsense-src/lib/libc/stdtime
Dag-Erling Smørgrav 259dcedc4a 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

(cherry picked from commit 4285e024baa80f81d13cdcc016fdf0721fe57862)
2024-12-16 10:37:08 +00:00
..
ctime.3 libc: Improve description of mktime() / timegm(). 2024-04-04 11:41:41 +02:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
strftime.3 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
strftime.c Update tzcode to 2024a. 2024-02-21 21:33:23 +01:00
strptime.3 strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
strptime.c strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
Symbol.map libc: Remove empty comments in Symbol.map 2023-12-13 22:08:13 +00:00
time32.c libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
timelocal.c libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
timelocal.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00