diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 26 |
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 @@ | |||
558 | "world\n" | 558 | "world\n" |
559 | 559 | ||
560 | #define date_trivial_usage \ | 560 | #define date_trivial_usage \ |
561 | "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]" | 561 | "[OPTION]... [+FMT] [TIME]" |
562 | #define date_full_usage \ | 562 | #define date_full_usage \ |
563 | "Display current time in the given FORMAT, or set system date\n" \ | 563 | "Display time (using +FMT), or set time\n" \ |
564 | "\nOptions:" \ | 564 | "\nOptions:" \ |
565 | "\n -u Work in UTC (don't convert to local time)" \ | ||
565 | "\n -R Output RFC-822 compliant date string" \ | 566 | "\n -R Output RFC-822 compliant date string" \ |
566 | "\n -d STRING Display time described by STRING, not 'now'" \ | ||
567 | USE_FEATURE_DATE_ISOFMT( \ | 567 | USE_FEATURE_DATE_ISOFMT( \ |
568 | "\n -I[TIMESPEC] Output an ISO-8601 compliant date/time string" \ | 568 | "\n -I[SPEC] Output ISO-8601 compliant date string" \ |
569 | "\n TIMESPEC='date' (or missing) for date only," \ | 569 | "\n SPEC='date' (default) for date only," \ |
570 | "\n 'hours', 'minutes', or 'seconds' for date and" \ | 570 | "\n 'hours', 'minutes', or 'seconds' for date and" \ |
571 | "\n time to the indicated precision" \ | 571 | "\n time to the indicated precision" \ |
572 | "\n -D hint Use 'hint' as date format, via strptime()" \ | ||
573 | ) \ | 572 | ) \ |
574 | "\n -s STRING Set time described by STRING" \ | 573 | "\n -d TIME Display TIME, not 'now'" \ |
575 | "\n -r FILE Display the last modification time of FILE" \ | 574 | "\n -r FILE Display last modification time of FILE" \ |
576 | "\n -u Print or sets Coordinated Universal Time" \ | 575 | "\n [-s] TIME Set time to TIME" \ |
576 | USE_FEATURE_DATE_ISOFMT( \ | ||
577 | "\n -D FMT Use FMT for str->date conversion" \ | ||
578 | ) \ | ||
579 | "\n" \ | ||
580 | "\nRecognized formats for TIME:" \ | ||
581 | "\n [hh:]mm:ss" \ | ||
582 | "\n mon.day-hh:mm[:ss]" \ | ||
583 | "\n year.mon.day-hh:mm[:ss]" \ | ||
584 | "\n MMDDhhmm[[YY]YY][.ss]" \ | ||
577 | 585 | ||
578 | #define date_example_usage \ | 586 | #define date_example_usage \ |
579 | "$ date\n" \ | 587 | "$ date\n" \ |