diff options
Diffstat (limited to 'lib/libc/stdtime')
| -rw-r--r-- | lib/libc/stdtime/strftime.3 | 5 | ||||
| -rw-r--r-- | lib/libc/stdtime/strptime.3 | 2 | ||||
| -rw-r--r-- | lib/libc/stdtime/time2posix.3 | 18 |
3 files changed, 12 insertions, 13 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3 index e7e63d0ab4be..d4d4ebff1344 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 f04521998196..0e0630276070 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 edef39779ff8..c64879ba6388 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]" |
