aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-25 02:43:34 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-25 02:43:34 +0000
commit9ce4ae8142b191ab6c2135165d5904351b48f665 (patch)
tree0064cf06ce484a14cacfecff0299b3f32c8ec1dd /include
parent92e13c2a11381eec06a382de6917369ded240804 (diff)
downloadbusybox-9ce4ae8142b191ab6c2135165d5904351b48f665.tar.gz
date: make help text more understandable; small shrink
text data bss dec hex filename 799025 641 7380 807046 c5086 busybox_old 799009 641 7380 807030 c5076 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r--include/usage.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/include/usage.h b/include/usage.h
index 450f80164..e7e9002f9 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -558,22 +558,30 @@
"world\n"
#define date_trivial_usage \
- "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"
+ "[OPTION]... [+FMT] [TIME]"
#define date_full_usage \
- "Display current time in the given FORMAT, or set system date\n" \
+ "Display time (using +FMT), or set time\n" \
"\nOptions:" \
+ "\n -u Work in UTC (don't convert to local time)" \
"\n -R Output RFC-822 compliant date string" \
- "\n -d STRING Display time described by STRING, not 'now'" \
USE_FEATURE_DATE_ISOFMT( \
- "\n -I[TIMESPEC] Output an ISO-8601 compliant date/time string" \
- "\n TIMESPEC='date' (or missing) for date only," \
+ "\n -I[SPEC] Output ISO-8601 compliant date string" \
+ "\n SPEC='date' (default) for date only," \
"\n 'hours', 'minutes', or 'seconds' for date and" \
"\n time to the indicated precision" \
- "\n -D hint Use 'hint' as date format, via strptime()" \
) \
- "\n -s STRING Set time described by STRING" \
- "\n -r FILE Display the last modification time of FILE" \
- "\n -u Print or sets Coordinated Universal Time" \
+ "\n -d TIME Display TIME, not 'now'" \
+ "\n -r FILE Display last modification time of FILE" \
+ "\n [-s] TIME Set time to TIME" \
+ USE_FEATURE_DATE_ISOFMT( \
+ "\n -D FMT Use FMT for str->date conversion" \
+ ) \
+ "\n" \
+ "\nRecognized formats for TIME:" \
+ "\n [hh:]mm:ss" \
+ "\n mon.day-hh:mm[:ss]" \
+ "\n year.mon.day-hh:mm[:ss]" \
+ "\n MMDDhhmm[[YY]YY][.ss]" \
#define date_example_usage \
"$ date\n" \