Mon Sep 2 00:24:01 2019 UTC ()
start documenting history


(sevan)
diff -r1.60 -r1.61 src/lib/libc/time/ctime.3

cvs diff -r1.60 -r1.61 src/lib/libc/time/ctime.3 (expand / switch to unified diff)

--- src/lib/libc/time/ctime.3 2018/10/19 23:05:35 1.60
+++ src/lib/libc/time/ctime.3 2019/09/02 00:24:01 1.61
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1.\" $NetBSD: ctime.3,v 1.60 2018/10/19 23:05:35 christos Exp $ 1.\" $NetBSD: ctime.3,v 1.61 2019/09/02 00:24:01 sevan Exp $
2.\" 2.\"
3.\" XXX: License missing? 3.\" XXX: License missing?
4.\" 4.\"
5.Dd May 5, 2018 5.Dd September 2, 2019
6.Dt CTIME 3 6.Dt CTIME 3
7.Os 7.Os
8.Sh NAME 8.Sh NAME
9.Nm asctime , 9.Nm asctime ,
10.Nm asctime_r , 10.Nm asctime_r ,
11.Nm ctime , 11.Nm ctime ,
12.Nm ctime_r , 12.Nm ctime_r ,
13.Nm ctime_rz , 13.Nm ctime_rz ,
14.Nm difftime , 14.Nm difftime ,
15.Nm gmtime , 15.Nm gmtime ,
16.Nm gmtime_r , 16.Nm gmtime_r ,
17.Nm localtime , 17.Nm localtime ,
18.Nm localtime_r , 18.Nm localtime_r ,
@@ -484,26 +484,31 @@ and @@ -484,26 +484,31 @@ and
484.Sh STANDARDS 484.Sh STANDARDS
485The 485The
486.Fn ctime , 486.Fn ctime ,
487.Fn difftime , 487.Fn difftime ,
488.Fn asctime , 488.Fn asctime ,
489.Fn localtime , 489.Fn localtime ,
490.Fn gmtime 490.Fn gmtime
491and 491and
492.Fn mktime 492.Fn mktime
493functions conform to 493functions conform to
494.St -ansiC . 494.St -ansiC .
495Rest of the functions conform to 495Rest of the functions conform to
496.St -p1003.1-2008 . 496.St -p1003.1-2008 .
 497.Sh HISTORY
 498A
 499.Fn ctime
 500function appeared in
 501.At v1 .
497.Sh CAVEATS 502.Sh CAVEATS
498The functions that do not take an explicit 503The functions that do not take an explicit
499.Ft timezone_t 504.Ft timezone_t
500argument return values pointing to static data; the data is overwritten by 505argument return values pointing to static data; the data is overwritten by
501each call. 506each call.
502For the above functions the 507For the above functions the
503.Dv tzname 508.Dv tzname
504variable (once set) and the 509variable (once set) and the
505.Fa tm_zone 510.Fa tm_zone
506field of a returned 511field of a returned
507.Va "struct tm" 512.Va "struct tm"
508point to an array of characters that 513point to an array of characters that
509can be freed or overwritten by later calls to the functions 514can be freed or overwritten by later calls to the functions