HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)

c
ctime(3C) ctime(3C)
WARNINGS
Users of asctime_r(), ctime_r(), gmtime_r()
, and localtime_r() should also note that these
functions now conform to POSIX.1c. The old prototypes of these functions are supported for compatibility
with existing DCE applications only.
The range of
tm_sec([0,61])
extends to 61 to allow for the occasional one or two leap seconds. How-
ever, the ‘‘seconds since the Epoch’’ value returned by time(2) and passed as the timer argument does not
include accumulated leap seconds. The
tm structure generated by
localtime() and gmtime() will
never reflect any leap seconds. Upon successful completion,
mktime() forces the value of the tm_sec
component to the range [0,59].
AUTHOR
ctime() was developed by AT&T and HP.
SEE ALSO
time(2), getdate(3C), setlocale(3C), strftime(3C), tztab(4), environ(5), lang(5), langinfo(5),
thread_safety(5).
STANDARDS CONFORMANCE
ctime(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
asctime(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
daylight: AES, SVID2, SVID3, XPG2, XPG3, XPG4
difftime(): AES, SVID3, XPG4, ANSI C
gmtime(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
localtime(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
mktime(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
timezone: AES, SVID3, XPG2, XPG3, XPG4
tzname: AES, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
tzset(): AES, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
asctime_r(), ctime_r(), localtime_r()
, gmtime_r():POSIX.1c
HP-UX 11i Version 2: September 2004 4 Hewlett-Packard Company Section 3161