summaryrefslogtreecommitdiff
path: root/lib/libc/time
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-01-04 20:00:11 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-01-04 20:00:11 +0000
commitdafd3595fd26ad456a99855a24a8b16e45e59c81 (patch)
tree8111ae9e60c0c5e6d8a3606f085ffb16a3df85d8 /lib/libc/time
parent2903d0da64d2207d8087290543d406f79906f260 (diff)
include blurb about ISO 8601 dates straight from strftime.c
Diffstat (limited to 'lib/libc/time')
-rw-r--r--lib/libc/time/strftime.313
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3
index 136504239a6..56efdc9016f 100644
--- a/lib/libc/time/strftime.3
+++ b/lib/libc/time/strftime.3
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91
-.\" $OpenBSD: strftime.3,v 1.5 1998/07/06 18:57:12 millert Exp $
+.\" $OpenBSD: strftime.3,v 1.6 1999/01/04 20:00:10 millert Exp $
.\"
.Dd Jan 18, 1998
.Dt STRFTIME 3
@@ -202,6 +202,17 @@ The
and
.Ql \&%l
conversion specifications are extensions.
+.Pp
+Use of the ISO 8601 conversions may produce non-intuitive results.
+Week 01 of a year is per definition the first week which has the
+Thursday in this year, which is equivalent to the week which contains
+the fourth day of January. In other words, the first week of a new
+year is the week which has the majority of its days in the new year.
+Week 01 might also contain days from the previous year and the week
+before week 01 of a year is the last week (52 or 53) of the previous
+year even if it contains days from the new year. A week starts with
+Monday (day 1) and ends with Sunday (day 7). For example, the first
+week of the year 1997 lasts from 1996-12-30 to 1997-01-05.
.Sh BUGS
There is no conversion specification for the phase of the moon.
.Pp