diff options
author | 2011-09-16 15:01:58 +0000 | |
---|---|---|
committer | 2011-09-16 15:01:58 +0000 | |
commit | f38588dfd0376b9bfd4972aee3684811356d627d (patch) | |
tree | 6140426866ba0db439fd399383068705e42b0e89 /lib/libc | |
parent | If a user configures logging explicitly in relayd.conf, do it (diff) | |
download | wireguard-openbsd-f38588dfd0376b9bfd4972aee3684811356d627d.tar.xz wireguard-openbsd-f38588dfd0376b9bfd4972aee3684811356d627d.zip |
use .St here for ISO 8601 references; ok millert
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/time/strftime.3 | 16 | ||||
-rw-r--r-- | lib/libc/time/strptime.3 | 14 |
2 files changed, 21 insertions, 9 deletions
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3 index f23c2ed97c3..83c06907404 100644 --- a/lib/libc/time/strftime.3 +++ b/lib/libc/time/strftime.3 @@ -30,9 +30,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 -.\" $OpenBSD: strftime.3,v 1.25 2011/08/31 08:49:42 jmc Exp $ +.\" $OpenBSD: strftime.3,v 1.26 2011/09/16 15:01:58 jmc Exp $ .\" -.Dd $Mdocdate: August 31 2011 $ +.Dd $Mdocdate: September 16 2011 $ .Dt STRFTIME 3 .Os .Sh NAME @@ -100,9 +100,13 @@ single digits are preceded by a blank. is replaced by the date in the format .Dq Li %Y-%m-%d . .It Cm \&%G -is replaced by the ISO 8601 year with century as a decimal number. +is replaced by the +.St -iso8601-4 +year with century as a decimal number. .It Cm \&%g -is replaced by the ISO 8601 year without century as a decimal number (00\-99). +is replaced by the +.St -iso8601-4 +year without century as a decimal number (00\-99). .It Cm \&%H is replaced by the hour (24-hour clock) as a decimal number (00\-23). .It Cm \&%I @@ -220,7 +224,9 @@ and .Ql \&%+ conversion specifications are extensions. .Pp -Use of the ISO 8601 conversions may produce non-intuitive results. +Use of the +.St -iso8601-4 +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. diff --git a/lib/libc/time/strptime.3 b/lib/libc/time/strptime.3 index 115f3130ea1..9c0a590b041 100644 --- a/lib/libc/time/strptime.3 +++ b/lib/libc/time/strptime.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strptime.3,v 1.18 2011/09/16 09:44:50 jmc Exp $ +.\" $OpenBSD: strptime.3,v 1.19 2011/09/16 15:01:58 jmc Exp $ .\" .\" Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -97,7 +97,9 @@ the same as .Cm \&%d . .It Cm \&%F the date as %Y-%m-%d -(the ISO 8601 date format). +(the +.St -iso8601-4 +date format). .It Cm \&%g the year corresponding to the ISO week number, without the century. .It Cm \&%G @@ -152,7 +154,9 @@ as a decimal number [0,53]; leading zeros are permitted but not required. All days in a year preceding the first Sunday are considered to be in week 0. .It Cm \&%V -the ISO 8601:1988 week number as a decimal number. +the +.St -iso8601-4 +week number as a decimal number. If the week (starting on Monday) that contains January 1 has more than three days in the new year, then it is considered the first week of the year. @@ -181,7 +185,9 @@ Leading zeros are permitted but not required. .It Cm \&%Y the year, including the century (i.e., 1998). .It Cm \&%z -an ISO 8601 or RFC 2822 timezone specification. +an +.St -iso8601-4 +or RFC 2822 timezone specification. This is one of the following: the offset from Coordinated Universal Time |