Mercurial > hg > octave-kai > gnulib-hg
diff lib/strftime.h @ 10385:83fb5018d6e2
* lib/strftime.h: Add comments describing the two added arguments.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 31 Aug 2008 17:34:24 +0200 |
parents | bbbbbf4cd1c5 |
children | 0ef15d536366 |
line wrap: on
line diff
--- 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 <time.h> -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);