<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdtime, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-10-15T22:24:07Z</updated>
<entry>
<title>libc: Add "Z" as TZ designator for strptime.</title>
<updated>2025-10-15T22:24:07Z</updated>
<author>
<name>Gordon Tetlow</name>
<email>gordon@FreeBSD.org</email>
</author>
<published>2025-10-15T22:24:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=79e57ea662d92ffcbe7d65854a284aefac6a332d'/>
<id>urn:sha1:79e57ea662d92ffcbe7d65854a284aefac6a332d</id>
<content type='text'>
ISO 8601 allows use of "Z" as the time zone designator. Update the
strptime parser to allow this usage.

While we are at it, update the manpage to reflect that both UTC and Z
are now valid options.

Reviewed by:	des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53083
</content>
</entry>
<entry>
<title>libc: Add missing MLINK for tzname(3)</title>
<updated>2025-09-30T13:18:00Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-09-30T12:27:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=be8830612314d9afb64b5c040db689de44eb4b85'/>
<id>urn:sha1:be8830612314d9afb64b5c040db689de44eb4b85</id>
<content type='text'>
While here, fix manlint warnings and a typo in tzset(3).

MFC after:	3 days
</content>
</entry>
<entry>
<title>tzcode: Expose and document offtime() and offtime_r()</title>
<updated>2025-09-23T19:38:49Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-09-23T18:52:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=155290b23f0b503b9db675d6a45f85b189ee1926'/>
<id>urn:sha1:155290b23f0b503b9db675d6a45f85b189ee1926</id>
<content type='text'>
Includes diff reduction to upstream version of this patch.

MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	philip
Differential Revision:	https://reviews.freebsd.org/D39715
</content>
</entry>
<entry>
<title>libc: Test time zone change detection.</title>
<updated>2025-07-18T17:49:57Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-07-18T17:49:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=57ee56578cc55b3da9a0dee64b385507be2dc80a'/>
<id>urn:sha1:57ee56578cc55b3da9a0dee64b385507be2dc80a</id>
<content type='text'>
While here, clean the detection code up a bit.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D51343
</content>
</entry>
<entry>
<title>SPDX: Tag BSD-4.3TAHOE</title>
<updated>2025-05-21T16:37:10Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2025-05-15T13:53:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7098712bbfd60df9db324decbc1a5dd8f751356f'/>
<id>urn:sha1:7098712bbfd60df9db324decbc1a5dd8f751356f</id>
<content type='text'>
TIL traceroute.8 has one of the oldest liceses, predating BSD-4-Clause!
The SPDX tag was not even on Wikipedia. These are all the files I could
find in the tree with git grep that look like the license reported on
the SPDX website, including one that was misfiled.

Ref:			https://spdx.org/licenses/BSD-4.3TAHOE.html
MFC after:		3 days
Reported by:		brooks
Reviewed by:		brooks, carlavilla, imp, ivy
Approved by:		carlavilla (mentor)
Differential Revision:	https://reviews.freebsd.org/D50362
</content>
</entry>
<entry>
<title>strptime: Fix day-of-week calculation.</title>
<updated>2024-12-09T12:38:22Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-12-09T12:37:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4285e024baa80f81d13cdcc016fdf0721fe57862'/>
<id>urn:sha1:4285e024baa80f81d13cdcc016fdf0721fe57862</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>libc: Improve description of mktime() / timegm().</title>
<updated>2024-03-27T10:03:37Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-27T10:03:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7534109d13a6cdb22e78d9d4c0a0cd5efd323c45'/>
<id>urn:sha1:7534109d13a6cdb22e78d9d4c0a0cd5efd323c45</id>
<content type='text'>
* Mention that mktime() and timegm() set errno on failure.
* Correctly determining whether mktime() / timegm() succeeded with
  arbitrary input (where -1 can be a valid result) is non-trivial.
  Document the recommended procedure.

PR:		277863
MFC after:	1 week
Reviewed by:	pauamma_gundo.com, gbe
Differential Revision:	https://reviews.freebsd.org/D44503
</content>
</entry>
<entry>
<title>libc: Move tzset.3 to stdtime</title>
<updated>2024-03-12T04:19:31Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-03-12T04:19:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a0a6b276cfd7e072346842fe4746d08ee30e617'/>
<id>urn:sha1:7a0a6b276cfd7e072346842fe4746d08ee30e617</id>
<content type='text'>
This really belongs in stddime, since it documents interfaces
implemented in stdtime.

Suggested by:	brooks
Sponsored by:	Netflix
</content>
</entry>
<entry>
<title>timezone: Move to the XSI/POSIX definition for timezone.</title>
<updated>2024-03-12T04:19:31Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-03-12T04:19:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a34940a9756ac8edce36fec176949ee82e9235b4'/>
<id>urn:sha1:a34940a9756ac8edce36fec176949ee82e9235b4</id>
<content type='text'>
The old timezone(3) function has long since been obsolete and has a
fatally flawed interface. Retain this function for compatibility
purposes, but shift to providing the offset from UTC in the timezone
variable, whether or not the timezone observes summer time in the
'daylight' variable. Document the tzname variable that's already been
set. Also make _tztab() static. It's not used in libc (or anywhere in
the tree) and it's not exported as a public dynamic symbol.

Sponsored by:		Netflix
Reviewed by:		brooks, kib
Differential Revision:	https://reviews.freebsd.org/D44281
</content>
</entry>
<entry>
<title>Update tzcode to 2024a.</title>
<updated>2024-02-13T20:31:41Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-02-13T20:20:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=46c599340f187db577b9212ab18022f3c7380c68'/>
<id>urn:sha1:46c599340f187db577b9212ab18022f3c7380c68</id>
<content type='text'>
MFC after:	3 weeks
Sponsored by:	Klara, Inc.
</content>
</entry>
</feed>
