diff options
author | 2015-01-29 01:46:30 +0000 | |
---|---|---|
committer | 2015-01-29 01:46:30 +0000 | |
commit | ee10762e100ef47e82bb9da2ebe88f56c8db1013 (patch) | |
tree | 02ab3c65edd5034ed995d7f9609ea712653c2643 /lib/libc/time | |
parent | Radical cleanup of COMPATIBILITY sections: (diff) | |
download | wireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.tar.xz wireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.zip |
Use .Rv where appropriate, and move it to RETURN VALUES;
remove .Tn, and a few minor macro adjustments.
Patch from Kaspars at Bankovskis dot net.
Diffstat (limited to 'lib/libc/time')
-rw-r--r-- | lib/libc/time/strftime.3 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3 index 58dbd50c95a..1dd0cd00b23 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.33 2014/09/08 01:27:54 schwarze Exp $ +.\" $OpenBSD: strftime.3,v 1.34 2015/01/29 01:46:31 schwarze Exp $ .\" -.Dd $Mdocdate: September 8 2014 $ +.Dd $Mdocdate: January 29 2015 $ .Dt STRFTIME 3 .Os .Sh NAME @@ -64,13 +64,6 @@ and one other character. No more than .Fa maxsize characters will be placed into the array. -If the total number of resulting characters, including the terminating -NUL character, is not more than -.Fa maxsize , -.Fn strftime -returns the number of characters placed in the array, not counting the -terminating NUL. -Otherwise, zero is returned. .Pp Each conversion specification is replaced by the characters as follows which are then copied into the buffer. @@ -127,9 +120,9 @@ is replaced by the month as a decimal number (01\-12). is replaced by a newline. .It Cm %p is replaced by the locale's equivalent of either -.Dq Tn AM +.Dq AM or -.Dq Tn PM . +.Dq PM . .It Cm \&%R is replaced by the time in the format .Dq Li %H:%M . @@ -196,6 +189,13 @@ is replaced by the date and time in .Xr date 1 format. .El +.Sh RETURN VALUES +If the total number of resulting characters, including the terminating +NUL character, is not more than +.Fa maxsize , +.Fn strftime +returns the number of characters placed in the array, not counting the +terminating NUL. Otherwise, zero is returned. .Sh SEE ALSO .Xr date 1 , .Xr printf 1 , |