aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-12-29 14:08:20 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-12-29 14:08:20 +0000
commit4263595653697b5431b4e2d75ce462b2353f2216 (patch)
tree8d9379964e671d57e7bba00972413962093276ba /lib/libc/stdtime
parent030f23696c36c3eaa27264b9a0a8817106ca8af1 (diff)
Notes
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/strftime.35
-rw-r--r--lib/libc/stdtime/strptime.32
-rw-r--r--lib/libc/stdtime/time2posix.318
3 files changed, 12 insertions, 13 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3
index e7e63d0ab4be8..d4d4ebff13446 100644
--- a/lib/libc/stdtime/strftime.3
+++ b/lib/libc/stdtime/strftime.3
@@ -235,7 +235,7 @@ conforms to
.St -ansiC
with a lot of extensions including
.Ql %C ,
-.Ql %D ,
+.Ql \&%D ,
.Ql %E* ,
.Ql %e ,
.Ql %G ,
@@ -254,13 +254,12 @@ with a lot of extensions including
.Ql \&%V ,
.Ql %z ,
.Ql %+ .
-
+.Pp
The peculiar week number and year in the replacements of
.Ql %G ,
.Ql %g
and
.Ql \&%V
are defined in ISO 8601: 1988.
-
.Sh BUGS
There is no conversion specification for the phase of the moon.
diff --git a/lib/libc/stdtime/strptime.3 b/lib/libc/stdtime/strptime.3
index f045219981969..0e06302760705 100644
--- a/lib/libc/stdtime/strptime.3
+++ b/lib/libc/stdtime/strptime.3
@@ -63,7 +63,7 @@ All conversion specifications are identical to those described in
Two-digit year values, including formats
.Fa %y
and
-.Fa %D ,
+.Fa \&%D ,
are now interpreted as beginning at 1969 per POSIX requirements.
Years 69-00 are interpreted in the 20th century (1969-2000), years
01-68 in the 21st century (2001-2068).
diff --git a/lib/libc/stdtime/time2posix.3 b/lib/libc/stdtime/time2posix.3
index edef39779ff8b..c64879ba63883 100644
--- a/lib/libc/stdtime/time2posix.3
+++ b/lib/libc/stdtime/time2posix.3
@@ -88,19 +88,19 @@ and back from,
the POSIX representation over the leap second inserted at the end of June,
1993.
.Bl -column "93/06/30" "23:59:59" "A+0" "X=time2posix(T)"
-.It Sy DATE TIME T X=time2posix(T) posix2time(X)
-.It 93/06/30 23:59:59 A+0 B+0 A+0
-.It 93/06/30 23:59:60 A+1 B+1 A+1 or A+2
-.It 93/07/01 00:00:00 A+2 B+1 A+1 or A+2
-.It 93/07/01 00:00:01 A+3 B+2 A+3
+.It Sy "DATE TIME T X=time2posix(T) posix2time(X)"
+.It "93/06/30 23:59:59 A+0 B+0 A+0"
+.It "93/06/30 23:59:60 A+1 B+1 A+1 or A+2"
+.It "93/07/01 00:00:00 A+2 B+1 A+1 or A+2"
+.It "93/07/01 00:00:01 A+3 B+2 A+3"
.El
.Pp
A leap second deletion would look like...
.Bl -column "??/06/30" "23:59:58" "A+0" "X=time2posix(T)"
-.It Sy DATE TIME T X=time2posix(T) posix2time(X)
-.It ??/06/30 23:59:58 A+0 B+0 A+0
-.It ??/07/01 00:00:00 A+1 B+2 A+1
-.It ??/07/01 00:00:01 A+2 B+3 A+2
+.It Sy "DATE TIME T X=time2posix(T) posix2time(X)"
+.It "??/06/30 23:59:58 A+0 B+0 A+0"
+.It "??/07/01 00:00:00 A+1 B+2 A+1"
+.It "??/07/01 00:00:01 A+2 B+3 A+2"
.El
.Pp
.D1 No "[Note: posix2time(B+1) => A+0 or A+1]"