HP-UX Reference (11i v3 07/02) - 3 Library Functions N-Z (vol 7)

s
strftime(3C) strftime(3C)
en_US.roman8 %X 03:09:04 PM
fr_FR.roman8 %X 15h09 04
any* %H:%M:%S 15:09:04
any* %.1H:%.1M:%.1S 15:9:4
any* %2.1H:%-3M:%03.1S 15:9 :004
* The directives used in these examples are not affected by the
LC_TIME category of the locale.
WARNINGS
If the arguments s and format are defined such that they overlap, the behavior is undefined.
The function
tzset() is called upon every invocation of
strftime() (whether or not the time zone
name is copied to the output array).
The range of values for
%S ([0,61]) extends to 61 to allow for the occasional one or two leap seconds. How-
ever, the system does not accumulate leap seconds and the
tm structure generated by the functions
localtime() and gmtime() (see ctime(3C)) never reflects any leap seconds.
Results are undefined if values contained in the structure pointed to by timeptr exceed the ranges defined
for the
tm structure (see ctime(3C)) or are not consistent (such as if the tm_yday element is set to 0, indi-
cating the first day of January, while the
tm_mon element is set to 11, indicating a day in December).
AUTHOR
strftime() was developed by HP.
SEE ALSO
date(1), ctime(3C), getdate(3C), setlocale(3C), environ(5), langinfo(5), thread_safety(5).
STANDARDS CONFORMANCE
strftime() : AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
HP-UX 11i Version 3: February 2007 4 Hewlett-Packard Company 477