summaryrefslogtreecommitdiff
path: root/coreutils/Config.in
diff options
context:
space:
mode:
authorDenys Vlasenko2010-01-23 23:37:52 +0100
committerDenys Vlasenko2010-01-23 23:37:52 +0100
commit5da9f96ad85a2d9119d92c7a3d89deca7d904210 (patch)
tree95b00254246c88708421f611c7da4939508dde29 /coreutils/Config.in
parentdfd38a480bfa7e699020dc2608688d85dd90d89b (diff)
downloadbusybox-5da9f96ad85a2d9119d92c7a3d89deca7d904210.zip
busybox-5da9f96ad85a2d9119d92c7a3d89deca7d904210.tar.gz
date: introduce FEATURE_DATE_COMPAT; shrink
function old new delta date_main 889 862 -27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/Config.in')
-rw-r--r--coreutils/Config.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 1e32e26..fe481ff 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -115,6 +115,22 @@ config FEATURE_DATE_ISOFMT
Enable option (-I) to output an ISO-8601 compliant
date/time string.
+config FEATURE_DATE_COMPAT
+ bool "Support weird 'date MMDDhhmm[[YY]YY][.ss]' format"
+ default y
+ depends on DATE
+ help
+ System time can be set by 'date -s DATE' and simply 'date DATE',
+ but formats of DATE string are different. 'date DATE' accepts
+ a rather weird MMDDhhmm[[YY]YY][.ss] format with completely
+ unnatural placement of year between minutes and seconds.
+ date -s (and other commands like touch -d) use more sensible
+ formats (for one, ISO format YYYY-MM-DD hh:mm:ss.ssssss).
+
+ With this option off, 'date DATE' is 'date -s DATE' support
+ the same format. With it on, 'date DATE' additionally supports
+ MMDDhhmm[[YY]YY][.ss] format.
+
config DD
bool "dd"
default n