diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-18 04:49:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-18 04:49:20 +0200 |
commit | 38dd8aa657d80232d8bbce4ed359af2022f605c7 (patch) | |
tree | df326bb4ee6a083cc5b435a7b12d8ecb1331df8c /include | |
parent | 7aca89a7a32a1e560c447952c28a8b1e7fb775fc (diff) | |
download | busybox-w32-38dd8aa657d80232d8bbce4ed359af2022f605c7.tar.gz busybox-w32-38dd8aa657d80232d8bbce4ed359af2022f605c7.tar.bz2 busybox-w32-38dd8aa657d80232d8bbce4ed359af2022f605c7.zip |
touch: implement -t TIME (needed for testsuite)
This changes date -d TIME format a bit, makes it more compatible
function old new delta
parse_datestr 391 618 +227
touch_main 360 361 +1
packed_usage 26624 26615 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h index 9493b6d4b..5aedeab78 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -668,6 +668,7 @@ | |||
668 | #define date_full_usage "\n\n" \ | 668 | #define date_full_usage "\n\n" \ |
669 | "Display time (using +FMT), or set time\n" \ | 669 | "Display time (using +FMT), or set time\n" \ |
670 | "\nOptions:" \ | 670 | "\nOptions:" \ |
671 | "\n [-s] TIME Set time to TIME" \ | ||
671 | "\n -u Work in UTC (don't convert to local time)" \ | 672 | "\n -u Work in UTC (don't convert to local time)" \ |
672 | "\n -R Output RFC-822 compliant date string" \ | 673 | "\n -R Output RFC-822 compliant date string" \ |
673 | IF_FEATURE_DATE_ISOFMT( \ | 674 | IF_FEATURE_DATE_ISOFMT( \ |
@@ -676,18 +677,17 @@ | |||
676 | "\n 'hours', 'minutes', or 'seconds' for date and" \ | 677 | "\n 'hours', 'minutes', or 'seconds' for date and" \ |
677 | "\n time to the indicated precision" \ | 678 | "\n time to the indicated precision" \ |
678 | ) \ | 679 | ) \ |
679 | "\n -d TIME Display TIME, not 'now'" \ | ||
680 | "\n -r FILE Display last modification time of FILE" \ | 680 | "\n -r FILE Display last modification time of FILE" \ |
681 | "\n [-s] TIME Set time to TIME" \ | 681 | "\n -d TIME Display TIME, not 'now'" \ |
682 | IF_FEATURE_DATE_ISOFMT( \ | 682 | IF_FEATURE_DATE_ISOFMT( \ |
683 | "\n -D FMT Use FMT for str->date conversion" \ | 683 | "\n -D FMT Use FMT for -d TIME conversion" \ |
684 | ) \ | 684 | ) \ |
685 | "\n" \ | 685 | "\n" \ |
686 | "\nRecognized formats for TIME:" \ | 686 | "\nRecognized formats for TIME:" \ |
687 | "\n hh:mm[:ss]" \ | 687 | "\n hh:mm[:ss]" \ |
688 | "\n [YYYY.]MM.DD-hh:mm[:ss]" \ | 688 | "\n [YYYY.]MM.DD-hh:mm[:ss]" \ |
689 | "\n YYYY-MM-DD hh:mm[:ss]" \ | 689 | "\n YYYY-MM-DD hh:mm[:ss]" \ |
690 | "\n MMDDhhmm[[YY]YY][.ss]" \ | 690 | "\n [[[[[YY]YY]MM]DD]hh]mm[.ss]" \ |
691 | 691 | ||
692 | #define date_example_usage \ | 692 | #define date_example_usage \ |
693 | "$ date\n" \ | 693 | "$ date\n" \ |