aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-07-03 21:08:15 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-03 21:08:17 +0200
commit7580780ebc1edf97760f66a857c17fdd9fff3e9c (patch)
treec5a8df51471d122fbd06f4f52b59375e7609ac8b /man3
parentb82b3d4077c54a6b31a63c53a874b806baaed0ce (diff)
downloadman-pages-7580780ebc1edf97760f66a857c17fdd9fff3e9c.tar.gz
getdate.3: EXAMPLES: Fix comment.
The comments were misplaced (interchanged). strptime(3): %a or %A The name of the day of the week according to the current locale, in abbreviated form or the full name. %T Equivalent to %H:%M:%S. %F Equivalent to %Y-%m-%d, the ISO 8601 date format. Reported-by: <pellucida@tutanota.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/getdate.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/getdate.3 b/man3/getdate.3
index 01de0d63ad..6934fa7c01 100644
--- a/man3/getdate.3
+++ b/man3/getdate.3
@@ -229,8 +229,8 @@ The following shell session demonstrates the operation of the program:
.EX
.RB "$" " TFILE=$PWD/tfile"
.RB "$" " echo \(aq%A\(aq > $TFILE " " # Full name of the day of the week"
-.RB "$" " echo \(aq%T\(aq >> $TFILE" " # ISO date (YYYY\-MM\-DD)"
-.RB "$" " echo \(aq%F\(aq >> $TFILE" " # Time (HH:MM:SS)"
+.RB "$" " echo \(aq%T\(aq >> $TFILE" " # Time (HH:MM:SS)"
+.RB "$" " echo \(aq%F\(aq >> $TFILE" " # ISO date (YYYY\-MM\-DD)"
.RB "$" " date"
.RB "$" " export DATEMSK=$TFILE"
.RB "$" " ./a.out Tuesday \(aq2009\-12\-28\(aq \(aq12:22:33\(aq"