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-w32-9ce4ae8142b191ab6c2135165d5904351b48f665.tar.gz
busybox-w32-9ce4ae8142b191ab6c2135165d5904351b48f665.tar.bz2
busybox-w32-9ce4ae8142b191ab6c2135165d5904351b48f665.zip
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 @@
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" \