aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 04:49:20 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 04:49:20 +0200
commit38dd8aa657d80232d8bbce4ed359af2022f605c7 (patch)
treedf326bb4ee6a083cc5b435a7b12d8ecb1331df8c /include
parent7aca89a7a32a1e560c447952c28a8b1e7fb775fc (diff)
downloadbusybox-38dd8aa657d80232d8bbce4ed359af2022f605c7.tar.gz
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.h8
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 @@
#define date_full_usage "\n\n" \
"Display time (using +FMT), or set time\n" \
"\nOptions:" \
+ "\n [-s] TIME Set time to TIME" \
"\n -u Work in UTC (don't convert to local time)" \
"\n -R Output RFC-822 compliant date string" \
IF_FEATURE_DATE_ISOFMT( \
@@ -676,18 +677,17 @@
"\n 'hours', 'minutes', or 'seconds' for date and" \
"\n time to the indicated precision" \
) \
- "\n -d TIME Display TIME, not 'now'" \
"\n -r FILE Display last modification time of FILE" \
- "\n [-s] TIME Set time to TIME" \
+ "\n -d TIME Display TIME, not 'now'" \
IF_FEATURE_DATE_ISOFMT( \
- "\n -D FMT Use FMT for str->date conversion" \
+ "\n -D FMT Use FMT for -d TIME conversion" \
) \
"\n" \
"\nRecognized formats for TIME:" \
"\n hh:mm[:ss]" \
"\n [YYYY.]MM.DD-hh:mm[:ss]" \
"\n YYYY-MM-DD hh:mm[:ss]" \
- "\n MMDDhhmm[[YY]YY][.ss]" \
+ "\n [[[[[YY]YY]MM]DD]hh]mm[.ss]" \
#define date_example_usage \
"$ date\n" \