aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-10-02 11:36:10 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-10-02 11:36:10 +0000
commit22585925b005e38afb05a68fa5a756ecf3a3c77c (patch)
treeec3a92a3a07f32e163fa10cc392e41f5db0580d1
parente20239f71deb7a59959e9efd1ff7603942cc9c54 (diff)
Notes
-rw-r--r--lib/libc/stdtime/ctime.315
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/libc/stdtime/ctime.3 b/lib/libc/stdtime/ctime.3
index a30bf4197dad..d970e4f5ed5e 100644
--- a/lib/libc/stdtime/ctime.3
+++ b/lib/libc/stdtime/ctime.3
@@ -53,7 +53,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Vt extern char *tzname[2] ;
.Ft char *
.Fn ctime "const time_t *clock"
@@ -196,7 +196,18 @@ The original values of the
and
.Fa tm_yday
components of the structure are ignored, and the original values of the
-other components are not restricted to their normal ranges.
+other components are not restricted to their normal ranges, and will be
+normalized if needed.
+For example,
+October 40 is changed into November 9,
+a
+.Fa tm_hour
+of \-1 means 1 hour before midnight,
+.Fa tm_mday
+of 0 means the day preceding the current month, and
+.Fa tm_mon
+of \-2 means 2 months before January of
+.Fa tm_year .
(A positive or zero value for
.Fa tm_isdst
causes