Home | History | Annotate | Download | only in time
History log of /src/lib/libc/time/strptime.3
RevisionDateAuthorComments
 1.40  06-Apr-2025  christos PR/59249: Taylor R Campbell: Add missing man pages: strptime_l, strftime_l,
strftime_lz, strftime_z
 1.39  07-Sep-2024  rillig man: fix month name
 1.38  24-Oct-2022  uwe branches: 1.38.4;
strptime(3): make the fact that %z is an extension more prominent

Mention it near the format itself, not on the next screen (with an
awkward indentation too).
 1.37  24-Feb-2019  maya fix typo. From Evil_Bob.
 1.36  27-Oct-2017  kre branches: 1.36.4;

Minor typo: Coordinated Universal time should be Coordinated Universal Time
 1.35  25-Dec-2016  abhinav As per the IEEE 1003.1-2008 standard, the range of values for the %S
format specifier is [0,60].
 1.34  31-Oct-2015  ginsbach branches: 1.34.2;
- Add reference to RFC-3339
- Add J to military / nautical time zone description
 1.33  29-Oct-2015  wiz Whitespace.
 1.32  29-Oct-2015  christos PR/50380: Balazs Scheidler: strptime() returns incorrect values in tm_gmtoff
- Always offset in seconds.
- Handle arbitrary timezones.
 1.31  06-Apr-2015  ginsbach Add UTC as a synonym for GMT (%Z). [from FreeBSD]
 1.30  03-Apr-2015  ginsbach Fix spelling; time zone is two words not one.
 1.29  12-Apr-2011  jruoho Xref tm(3).
 1.28  12-Apr-2011  jruoho .Dv NULL.
 1.27  24-May-2009  ginsbach Crank date for previous.
 1.26  24-May-2009  ginsbach Add %s to strptime(3) to make symmetric with strftime(3).
 1.25  01-May-2009  wiz Drop trailing whitespace.
 1.24  01-May-2009  ginsbach Extend %z to support all RFC-2822 timezone formats.
 1.23  09-Mar-2009  joerg Fix preamble to match order set out by mdoc(7). Discussed with wiz.
 1.22  04-Nov-2008  christos branches: 1.22.2; 1.22.4;
Our new syslogd seems to want to depend on %z which is a gnu extension.
- While here, add all the rest of gnu extensions: %g, %G, %u.
- Fix long standing bug where %Z would not work because "private.h" was
not included. (Hi Brian!)
 1.21  30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.20  25-Apr-2008  ginsbach Add %F the ISO 8601 date format which is equivalent to %Y-%m-%d. This
format character is supported for reasons of symmetry with strftime(3).
FreeBSD and GNU versions of strptime(3) both support %F.
 1.19  25-Apr-2008  ginsbach Change date for previous change (addition of %Z).
 1.18  24-Apr-2008  ginsbach Add support for %Z ala FreeBSD and some other strptime(3) implementations.
Reviewed by christos.
 1.17  19-Mar-2004  kleink branches: 1.17.30;
Make casing in previous consistent.
 1.16  19-Mar-2004  kleink %% doesn't write anything; a literal % is matched. Noted by Hubert Feyrer.
 1.15  16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.14  01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.13  18-Aug-2002  yamt note that month and weekday names are case-insensitive.
from OpenBSD.
 1.12  07-Feb-2002  ross branches: 1.12.2;
Generate <>& symbolically.
 1.11  16-Sep-2001  wiz Sort SEE ALSO.
 1.10  02-Apr-2001  wiz Improve some markup.
 1.9  29-Mar-2001  kleink Sprinkle some restrict.
 1.8  05-May-1998  tv branches: 1.8.10; 1.8.12;
Fubar: XPG4 (SUS'98) _does_ specify two digit year behavior without %C.
Change text back to "conforms to."
 1.7  05-May-1998  tv As inspired by PR #5268 from jpo@easterngraphics.com:
- make string comparisons case-insensitive
- add description of whitespace in the format string
- note that %t and %n match no whitespace as well as some whitespace
- change wording of standard to say "includes all requirements of"
instead of "conforms to" XPG4 as our %y is extended beyond XPG4
 1.6  19-Mar-1998  tv Fixes from PRs 5056 and 5161, partly rethought:
- %C and %y can be used in conjunction properly, though %y can have its
old behaviour if used without %C
- %I formats hous 0..11 with 0 representing "12"; this is correct both
with and without am/pm (%p rule fixed to compensate)
- %j fixed for range [0..365] in struct tm
- %m fixed for range [0..11] in struct tm
- %S fixed for range [0..61] in struct tm
 1.5  05-Feb-1998  perry add LIBRARY section to man page
 1.4  20-Jan-1998  mycroft Update dates.
 1.3  20-Jan-1998  mycroft Update documentation of %y to reflect y2k change.
 1.2  30-Jul-1997  jtc branches: 1.2.2;
Fix files using old TNF copyright notice
 1.1  25-May-1997  kleink Add a strptime(3) manual page.
 1.2.2.2  05-May-1998  mycroft Pull up 1.6-1.8, per request of tv.
 1.2.2.1  29-Jan-1998  mellon Pull up 1.3-1.4 (mycroft)
 1.8.12.5  18-Oct-2002  nathanw Catch up to -current.
 1.8.12.4  27-Aug-2002  nathanw Catch up to -current.
 1.8.12.3  22-Mar-2002  nathanw Catch up to -current.
 1.8.12.2  08-Mar-2002  nathanw Catch up to -current.
 1.8.12.1  08-Oct-2001  nathanw Catch up to -current.
 1.8.10.1  04-Apr-2001  he Pull up revision 1.10 (requested by wiz):
Improve some markup.
 1.12.2.1  28-Mar-2004  jmc Pullup rev 1.16-1.17 via patch (requested by kleink in ticket #1635)

%% doesn't write anything; a literal % is matched.
 1.17.30.1  18-May-2008  yamt sync with head.
 1.22.4.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.22.2.2  04-Nov-2008  christos Our new syslogd seems to want to depend on %z which is a gnu extension.
- While here, add all the rest of gnu extensions: %g, %G, %u.
- Fix long standing bug where %Z would not work because "private.h" was
not included. (Hi Brian!)
 1.22.2.1  04-Nov-2008  christos file strptime.3 was added on branch christos-time_t on 2008-11-04 18:37:29 +0000
 1.34.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.36.4.1  10-Jun-2019  christos Sync with HEAD
 1.38.4.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed