summaryrefslogtreecommitdiff
path: root/lib/strftime.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-08-31 17:34:24 +0200
committerJim Meyering <meyering@redhat.com>2008-08-31 17:34:24 +0200
commit4bb481aef2793a2cd25d61113d58da42af2bf8a8 (patch)
tree48adc5c050a1bab246bf89df3ef0c9d4c143b65e /lib/strftime.h
parentd9b9f07a096ccd2e94339f7b531e4ef0b9290019 (diff)
downloadgnulib-4bb481aef2793a2cd25d61113d58da42af2bf8a8.tar.gz
* lib/strftime.h: Add comments describing the two added arguments.
Diffstat (limited to 'lib/strftime.h')
-rw-r--r--lib/strftime.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/strftime.h b/lib/strftime.h
index ae9cc6b2dd..c3c183ec92 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 <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);