libc: Test time zone change detection.While here, clean the detection code up a bit.Sponsored by: Klara, Inc.Sponsored by: NetApp, Inc.Reviewed by: markjDifferential Revision: https://reviews.
libc: Test time zone change detection.While here, clean the detection code up a bit.Sponsored by: Klara, Inc.Sponsored by: NetApp, Inc.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D51343
show more ...
strptime: Fix day-of-week calculation.The day-of-week calculation used the raw year value without adjustingfor TM_YEAR_BASE, so it was off by one for 300 years out of every 400;it just happened t
strptime: Fix day-of-week calculation.The day-of-week calculation used the raw year value without adjustingfor 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 aloop where a simple addition would have sufficed.While here, simplify our version of Gauss's algorithm, and documentthat we assume the Gregorian calendar.MFC after: 1 weekPR: 282916Reviewed by: imp, allanjude, philipDifferential Revision: https://reviews.freebsd.org/D47977