summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDominic Dunlop <domo@computer.org>1999-02-02 16:55:29 +0100
committerJarkko Hietaniemi <jhi@iki.fi>1999-02-03 14:01:37 +0000
commit659b49385bc40faa816c2396d68094df873b2672 (patch)
tree6870e71f85446f7489bbb78538ba256e84459e16 /ext
parent19a8a53999ba127106caca1c90a5bd6b4bc4b46f (diff)
downloadperl-659b49385bc40faa816c2396d68094df873b2672.tar.gz
Document the standard strftime %formats.
To: "Kurt D. Starsinic" <kstar@chapin.edu>, Ben Gertzfield <che@debian.org> Subject: [PATCH] 5.00[45]*: Re: POSIX's strftime() does not enforce POSIX %C on Solaris Message-Id: <v0311070cb2dcb3f5f773@[212.24.192.188]> p4raw-id: //depot/cfgperl@2807
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/POSIX.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod
index 7b21810567..6ad74b74b9 100644
--- a/ext/POSIX/POSIX.pod
+++ b/ext/POSIX/POSIX.pod
@@ -1019,7 +1019,11 @@ The month (C<mon>), weekday (C<wday>), and yearday (C<yday>) begin at zero.
I.e. January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1. The
year (C<year>) is given in years since 1900. I.e., the year 1995 is 95; the
year 2001 is 101. Consult your system's C<strftime()> manpage for details
-about these and the other arguments. The given arguments are made consistent
+about these and the other arguments.
+If you want your code to be portable, your format (C<fmt>) argument
+should use only the conversion specifiers defined by the ANSI C
+standard. These are C<aAbBcdHIjmMpSUwWxXyYZ%>.
+The given arguments are made consistent
by calling C<mktime()> before calling your system's C<strftime()> function.
The string for Tuesday, December 12, 1995.