aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-08-29 14:18:26 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-08-29 14:18:26 +0000
commit2ce002a732057cd7fbf5a9346097f8a012f3fd90 (patch)
treed3a3caf4b642fa8b777475e258928d013d59d878 /include
parentb19c73dee69b6ec64700aa9eef5385d06329f730 (diff)
downloadbusybox-2ce002a732057cd7fbf5a9346097f8a012f3fd90.tar.gz
Help for date -I when CONFIG_FEATURE_DATE_ISOFMT is enabled.
Patch by Steven Scholz
Diffstat (limited to 'include')
-rw-r--r--include/usage.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index 35a3d5033..07bec2a9e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -253,13 +253,23 @@
"$ echo "Hello world" | cut -f 2 -d ' '\n" \
"world\n"
+#ifdef CONFIG_FEATURE_DATE_ISOFMT
+#define USAGE_DATE_ISOFMT(a) a
+#else
+#define USAGE_DATE_ISOFMT(a)
+#endif
+
#define date_trivial_usage \
"[OPTION]... [+FORMAT]"
#define date_full_usage \
"Displays the current time in the given FORMAT, or sets the system date.\n" \
"\nOptions:\n" \
"\t-R\t\tOutputs RFC-822 compliant date string\n" \
- "\t-d STRING\tdisplay time described by STRING, not `now'\n" \
+ "\t-d STRING\tDisplays time described by STRING, not `now'\n" \
+ USAGE_DATE_ISOFMT("\t-I[TIMESPEC]\tOutputs an ISO-8601 compliant date/time string.\n" \
+ "\t\t\tTIMESPEC=`date' (or missing) for date only,\n" \
+ "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \
+ "\t\t\ttime to the indicated precision.\n") \
"\t-s\t\tSets time described by STRING\n" \
"\t-u\t\tPrints or sets Coordinated Universal Time"
#define date_example_usage \