aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/date.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-01-06 13:38:01 -0800
committerRob Landley <rob@landley.net>2020-01-06 19:54:45 -0600
commite00ab7de3c5f929adee379da555fb6c678770f28 (patch)
tree35f5177a46fb8bb20fe583cad1fd0b1ac09bc666 /toys/posix/date.c
parent5854c801a718e92504114dec21038d740498dd65 (diff)
downloadtoybox-e00ab7de3c5f929adee379da555fb6c678770f28.tar.gz
date.c: add a few more important specifiers to --help.
Odd (and un-toyboxy) that we advertise the locale-specific output formats but not the ISO ones :-)
Diffstat (limited to 'toys/posix/date.c')
-rw-r--r--toys/posix/date.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/toys/posix/date.c b/toys/posix/date.c
index a1762854..75408cab 100644
--- a/toys/posix/date.c
+++ b/toys/posix/date.c
@@ -46,8 +46,9 @@ config DATE
%U Week of year (0-53 start sunday) %W Week of year (0-53 start monday)
%V Week of year (1-53 start monday, week < 4 days not part of this year)
- %D = "%m/%d/%y" %r = "%I : %M : %S %p" %T = "%H:%M:%S" %h = "%b"
- %x locale date %X locale time %c locale date/time
+ %F "%Y-%m-%d" %R "%H:%M" %T "%H:%M:%S" %z numeric timezone
+ %D "%m/%d/%y" %r "%I:%M:%S %p" %h "%b" %s unix epoch time
+ %x locale date %X locale time %c locale date/time
*/
#define FOR_date