History log of /freebsd-10.2-release/lib/libc/stdtime/strptime.3
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 272758 08-Oct-2014 pfg

MFC r272273, r272387, r272443, r272533 :

Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR: 137307
Relnotes: yes

MFC r272441 :

strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by: ache


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 237573 25-Jun-2012 issyl0

Add more locale-specific functions to the relevant man pages and
Makefiles:
- libc/stdtime/strftime.3
- libc/stdtime/strptime.3
- libc/stdlib/strfmon.3

Reviewed by: theraven
Approved by: gabor (mentor)


# 203958 16-Feb-2010 ru

%U was macroized in mdoc(7), escape.


# 140505 20-Jan-2005 ru

Sort sections.


# 131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 108653 04-Jan-2003 tjr

strptime(), like strftime(), does not handle multibyte characters
in the format string correctly.


# 108083 19-Dec-2002 ru

mdoc(7) police: excessive quotes.


# 108013 18-Dec-2002 tjr

Document what happens when the format string contains insufficient
conversion specifications to completely specify the resulting struct tm.

PR: 46331
Submitted by: Christian S.J. Peron
MFC after: 2 weeks


# 103012 06-Sep-2002 tjr

Style: One space between "restrict" qualifier and "*".


# 101936 15-Aug-2002 robert

Use one line for each function argument to keep the line
width smaller than 80 columns.

Thanks to Ruslan for an explanation of multiple ways to
achieve this.


# 101886 14-Aug-2002 robert

- Add the C99 'restrict' qualifier using the '__restrict' macro to
function prototype and definition of strptime(3).
- Update the manual page.


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


# 70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


# 68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 54348 09-Dec-1999 sheldonh

Remove discussion of %C in the BUGS section. The limitations on valid
centuries are much more serious than those mentioned and this is not the
place to discuss the limitations of time_t.


# 54316 08-Dec-1999 sheldonh

Prevent digit-gobbling for all but %l and %e, which can't be fixed.
Discuss in the BUGS section of the manpage, problems involved with
the use of %C, %e, %l, %p, %U and %W.

PR: 13901
Reported by: scott@chronis.pobox.com


# 50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48550 04-Jul-1999 obrien

Actually impliment the documented %Z specifier.


# 46051 25-Apr-1999 wes

Re-fixed to start at 1969 per the actual Posix requirement. Also
fixed a typo on the man page.


# 46042 25-Apr-1999 wes

Bring two-digit years up-to-date with POSIX requirements.
70-00 are intepreted in the 20th century; 01-69 in the
21st century. (Yes, 2000 is the last year of the 20th
century, not the first year of the 21st.)

Submitted by: Sergey Babkin <babkin@bellatlantic.net>


# 39113 12-Sep-1998 dt

Change return type of strptime from const char* to char*.
const char* was wrong and nonstandard.


# 28021 09-Aug-1997 joerg

Import strptime(3) into libc. We've got permission by Kevin Ruddy to
modify the original `no modifications' copyright message, and i've
included his mail into the source file.

The common localization functions between strptime(3) and strftime(3)
have been broken out into timelocal.[ch].