diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-08-29 14:18:26 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-08-29 14:18:26 +0000 |
| commit | 2ce002a732057cd7fbf5a9346097f8a012f3fd90 (patch) | |
| tree | d3a3caf4b642fa8b777475e258928d013d59d878 /include | |
| parent | b19c73dee69b6ec64700aa9eef5385d06329f730 (diff) | |
| download | busybox-w32-2ce002a732057cd7fbf5a9346097f8a012f3fd90.tar.gz busybox-w32-2ce002a732057cd7fbf5a9346097f8a012f3fd90.tar.bz2 busybox-w32-2ce002a732057cd7fbf5a9346097f8a012f3fd90.zip | |
Help for date -I when CONFIG_FEATURE_DATE_ISOFMT is enabled.
Patch by Steven Scholz
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.h | 12 |
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 @@ | |||
| 253 | "$ echo "Hello world" | cut -f 2 -d ' '\n" \ | 253 | "$ echo "Hello world" | cut -f 2 -d ' '\n" \ |
| 254 | "world\n" | 254 | "world\n" |
| 255 | 255 | ||
| 256 | #ifdef CONFIG_FEATURE_DATE_ISOFMT | ||
| 257 | #define USAGE_DATE_ISOFMT(a) a | ||
| 258 | #else | ||
| 259 | #define USAGE_DATE_ISOFMT(a) | ||
| 260 | #endif | ||
| 261 | |||
| 256 | #define date_trivial_usage \ | 262 | #define date_trivial_usage \ |
| 257 | "[OPTION]... [+FORMAT]" | 263 | "[OPTION]... [+FORMAT]" |
| 258 | #define date_full_usage \ | 264 | #define date_full_usage \ |
| 259 | "Displays the current time in the given FORMAT, or sets the system date.\n" \ | 265 | "Displays the current time in the given FORMAT, or sets the system date.\n" \ |
| 260 | "\nOptions:\n" \ | 266 | "\nOptions:\n" \ |
| 261 | "\t-R\t\tOutputs RFC-822 compliant date string\n" \ | 267 | "\t-R\t\tOutputs RFC-822 compliant date string\n" \ |
| 262 | "\t-d STRING\tdisplay time described by STRING, not `now'\n" \ | 268 | "\t-d STRING\tDisplays time described by STRING, not `now'\n" \ |
| 269 | USAGE_DATE_ISOFMT("\t-I[TIMESPEC]\tOutputs an ISO-8601 compliant date/time string.\n" \ | ||
| 270 | "\t\t\tTIMESPEC=`date' (or missing) for date only,\n" \ | ||
| 271 | "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \ | ||
| 272 | "\t\t\ttime to the indicated precision.\n") \ | ||
| 263 | "\t-s\t\tSets time described by STRING\n" \ | 273 | "\t-s\t\tSets time described by STRING\n" \ |
| 264 | "\t-u\t\tPrints or sets Coordinated Universal Time" | 274 | "\t-u\t\tPrints or sets Coordinated Universal Time" |
| 265 | #define date_example_usage \ | 275 | #define date_example_usage \ |
