History log of /freebsd-10.1-release/lib/libc/stdtime/strftime.3
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

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

# 268721 15-Jul-2014 wblock

MFC r267618:

Fix syntax error.


# 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)


# 179038 16-May-2008 grog

Clarify that "ante meridiem" and "post meridiem" mean the same thing
as the more commonly used "a.m." and "p.m.".

Tripped over by: Callum Gibson.

MFC after: 2 weeks


# 165903 08-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 165357 19-Dec-2006 jmg

add a missing the...

MFC after: 3 days


# 148580 31-Jul-2005 keramida

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


# 140081 11-Jan-2005 ru

Scheduled mdoc(7) sweep.


# 137190 04-Nov-2004 delphij

Add glibc-style strftime(3) padding specifiers, namely, -(no padding),
_(use space as padding), and 0(zero padding).

These GNU extensions are widely used ones that is worthy for us to
have.

Discussed with: stefanf, roam, -current
Approved by: murray
Prodded by: ports/72722, ports/72723
MFC After: 1 month


# 131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 108652 04-Jan-2003 tjr

Mention in the BUGS section that strftime() does not handle multibyte
characters in the format string correctly.


# 105150 15-Oct-2002 tjr

Add cross-references to the wide character counterparts of these functions.


# 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.


# 101888 14-Aug-2002 robert

- Add the 'restrict' qualifier to the function definition of
strftime(3) for IEEE Std 1003.1-2001 compliance and remove
excessive usage of the 'const' qualifier that was neither
present in the prototype in the publice header, nor in the
local prototype just above the function definition.
- Replace the K&R function definition with a ANSI-C one.
- Update the prototype of strftime(3) in its manual page.


# 97682 31-May-2002 archie

Grammar nit: treat "contents" as plural.


# 84306 01-Oct-2001 ru

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


# 74578 21-Mar-2001 ache

Get rid of non-standard %E[Ff] formats, userland apps already fixed


# 74412 18-Mar-2001 ache

Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c format
since they not allows POSIXly legal locale data. Currently, if relaxed form
POSIXly legal locale data will be used right now, some programs will be broken,
but it means that either locale data or programs must be fixed, not the library.

Introduce non-standard md_order (month/day order) locale field to be used later
via nl_langinfo(). Currently %EF and %Ef emulated using this field, but they
planned for remove in future in favour of nl_langinfo() test field.

Implement %F per POSIX


# 73088 26-Feb-2001 ru

.St -ansiC -> .St -isoC


# 70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


# 67658 26-Oct-2000 ache

For %c replace reference to asctime(3) with ctime(3) from which %c genetically
originates


# 67623 26-Oct-2000 ache

Force %c to be "%a %Ef %T %Y" to eliminate problems with bad c_fmt

Submitted by: ru


# 67498 24-Oct-2000 ache

Describe %c better

Submitted by: ru (with modifications)


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 56756 28-Jan-2000 joerg

There were so far only 42 different conversion specifications in
strftime(3), add another one. :) %z yields the local timezone's offset
in hours and minutes, as used in RFC822 headers. There's a precedence
for this in Lunux' libc, and Internet software (like Perl scripts)
start using it.

OKed by (wrt. the code freeze): jkh


# 53960 30-Nov-1999 ache

%Ex -> %Ef to not conflict with POSIX
Add %EF (long months name / day order)
Check that O and E not intermixed
Add missing POSIX extension to example


# 53959 30-Nov-1999 ache

Document %Ex and %OB


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48794 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# 36854 10-Jun-1998 danny

Fix grammar, "null" -> "NUL"


# 30728 26-Oct-1997 helbig

Typo.


# 30089 03-Oct-1997 helbig

Merged in better support of ISO 8601 from elsie.nci.nih.gov.
Added the conversion specifiers %g and %G, that are replaced
by the year which contains the greater part of the week in question.


# 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].


# 24429 31-Mar-1997 bde

Fixed wording of previous change.

Obtained from: fgets.3
Guided by: ISO C standard


# 24426 31-Mar-1997 imp

Revert my last few changes. They were bogus. Replaced them with
the original text plus a statement saying that if strftime fails,
the results are undefined.

Requested a long time ago by: bde


# 23343 03-Mar-1997 imp

Use .Sq Li \&\e0 rather than NUL to describe the character with no bits
set, as suggested by Garrett Wollman. This is more consistant with how
things like strncpy are done, as well as harder to confuse NUL and NULL.


# 23296 02-Mar-1997 imp

Pendantic change of null to NUL. Also warn that this function does not
NUL terminate in the case of buffer overflow.


# 21907 20-Jan-1997 wosch

Sort cross references.


# 15313 19-Apr-1996 bde

Removed bogus includes of <sys/types.h> from synopses.

This commit covers the man pages for most of the ANSI library functions.
A few others such as strtol.3 have to mention <sys/types.h> because they
mix ANSI interfaces with less well designed extensions.


# 9989 07-Aug-1995 ache

Fix manpage to reflect current sources


# 6815 01-Mar-1995 joerg

On snap 950210, format %s (print seconds from the epoch) is missing
from the code in strftime.c . This affects both the library code
and all the commands using it (e.g. date +%s).

Note that %s is not required by ANSI, but we've already got it in 1.1.5.1.

Suggested by: luigi@labinfo.iet.unipi.it (Luigi Rizzo)


# 2741 13-Sep-1994 wollman

Use latest Arthur Olson timezone code rather than that supplied with
4.4. The code is almost identical to the 4.4 versions, but this organization
should make it easier to merge new versions in the future.