From: Jim Meyering Date: Sun, 31 Aug 2008 15:34:24 +0000 (+0200) Subject: * lib/strftime.h: Add comments describing the two added arguments. X-Git-Tag: v0.1~7097 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=4bb481aef2793a2cd25d61113d58da42af2bf8a8;p=gnulib.git * lib/strftime.h: Add comments describing the two added arguments. --- diff --git a/ChangeLog b/ChangeLog index 99ab461da..459284024 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-08-31 Jim Meyering + * lib/strftime.h: Add comments describing the two added arguments. + remove duplicate #include directives * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include . * lib/putenv.c: Remove duplicate #include . diff --git a/lib/strftime.h b/lib/strftime.h index ae9cc6b2d..c3c183ec9 100644 --- a/lib/strftime.h +++ b/lib/strftime.h @@ -1,6 +1,6 @@ /* declarations for strftime.c - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,4 +17,10 @@ #include -size_t nstrftime (char *, size_t, char const *, struct tm const *, int, int); +/* Just like strftime, but with two more arguments: + POSIX requires that strftime use the local timezone information. + When __UTC is nonzero and tm->tm_zone is NULL or the empty string, + use UTC instead. Use __NS as the number of nanoseconds in the + %N directive. */ +size_t nstrftime (char *, size_t, char const *, struct tm const *, + int __utc, int __ns);