aboutsummaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-04 19:59:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-04 19:59:49 +0200
commite4070cb0d7586037c6fcf0f0f00d8d5b97f649d3 (patch)
treeabb5ef8065937f596c1e1e1249dc745c1076465b /coreutils/date.c
parent6db13732954b23bd0f6f55c5b3c3941f0547141c (diff)
downloadbusybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.tar.gz
busybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.tar.bz2
busybox-w32-e4070cb0d7586037c6fcf0f0f00d8d5b97f649d3.zip
partially migrate coreutils to Config.src and Kbuild.src
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index c1390be76..2720a3507 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -51,6 +51,47 @@
51 * and does not support -Ins 51 * and does not support -Ins
52 * -D FMT is a bbox extension for _input_ conversion of -d DATE 52 * -D FMT is a bbox extension for _input_ conversion of -d DATE
53 */ 53 */
54
55//kbuild:lib-$(CONFIG_DATE) += date.o
56
57//config:config DATE
58//config: bool "date"
59//config: default n
60//config: help
61//config: date is used to set the system date or display the
62//config: current time in the given format.
63//config:
64//config:config FEATURE_DATE_ISOFMT
65//config: bool "Enable ISO date format output (-I)"
66//config: default y
67//config: depends on DATE
68//config: help
69//config: Enable option (-I) to output an ISO-8601 compliant
70//config: date/time string.
71//config:
72//config:config FEATURE_DATE_NANO
73//config: bool "Support %[num]N nanosecond format specifier"
74//config: default y
75//config: depends on DATE
76//config: help
77//config: Support %[num]N format specifier. Adds ~250 bytes of code.
78//config:
79//config:config FEATURE_DATE_COMPAT
80//config: bool "Support weird 'date MMDDhhmm[[YY]YY][.ss]' format"
81//config: default y
82//config: depends on DATE
83//config: help
84//config: System time can be set by 'date -s DATE' and simply 'date DATE',
85//config: but formats of DATE string are different. 'date DATE' accepts
86//config: a rather weird MMDDhhmm[[YY]YY][.ss] format with completely
87//config: unnatural placement of year between minutes and seconds.
88//config: date -s (and other commands like touch -d) use more sensible
89//config: formats (for one, ISO format YYYY-MM-DD hh:mm:ss.ssssss).
90//config:
91//config: With this option off, 'date DATE' is 'date -s DATE' support
92//config: the same format. With it on, 'date DATE' additionally supports
93//config: MMDDhhmm[[YY]YY][.ss] format.
94
54#include "libbb.h" 95#include "libbb.h"
55 96
56enum { 97enum {