summaryrefslogtreecommitdiff
path: root/lib/libc/time/strftime.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/time/strftime.3')
-rw-r--r--lib/libc/time/strftime.319
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3
index 3383ffc3acd..eee1d0bbc9c 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.10 2000/04/16 16:24:04 d Exp $
+.\" $OpenBSD: strftime.3,v 1.11 2000/09/06 23:05:11 millert Exp $
.\"
.Dd January 18, 1998
.Dt STRFTIME 3
@@ -81,7 +81,7 @@ follows which are then copied into the buffer.
.Bl -tag -width "xxxx"
.It Cm \&%A
is replaced by the locale's full weekday name.
-.It Cm %a
+.It Cm \&%a
is replaced by the locale's abbreviated weekday name.
.It Cm \&%B
is replaced by the locale's full month name.
@@ -100,6 +100,9 @@ is replaced by the day of the month as a decimal number (01-31).
.It Cm \&%e
is replaced by the day of month as a decimal number (1-31);
single digits are preceded by a blank.
+.It Cm \&%F
+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.
.It Cm \&%g
@@ -169,7 +172,15 @@ is replaced by the year with century as a decimal number.
.It Cm \&%y
is replaced by the year without century as a decimal number (00-99).
.It Cm \&%Z
-is replaced by the time zone name.
+is replaced by the time zone name,
+or by the empty string if this is not determinable.
+.It Cm \&%z
+is replaced by the offset from UTC in the format
+.Dq Li +HHMM
+or
+.Dq Li -HHMM
+as appropriate, with positive values representing locations east
+of Greenwich, or by the empty string if this is not determinable.
.It Cm %%
is replaced by
.Ql % .
@@ -225,4 +236,4 @@ other implementations may not do so when
is not large enough to store the entire time string. The contents of
.Fa buf
are implementation specific in this case.
-.\" @(#)newstrftime.3 7.11
+.\" @(#)newstrftime.3 7.14