summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-02-17 07:58:04 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-02-17 07:58:04 +0000
commitc2266bd51990883ff6f7de4a4ca22a4bef2050c9 (patch)
treeb9fcbcdcb4d1814b585905d8e39586e132804bde /coreutils
parent5f11541bd4a38b3191b690c238386b2fb98105ec (diff)
downloadbusybox-w32-c2266bd51990883ff6f7de4a4ca22a4bef2050c9.tar.gz
busybox-w32-c2266bd51990883ff6f7de4a4ca22a4bef2050c9.tar.bz2
busybox-w32-c2266bd51990883ff6f7de4a4ca22a4bef2050c9.zip
Woops, im getting ahead of myself, we dont have the -r (refernece)
option yet
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 46d2e1074..1aa3e22d2 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -118,7 +118,9 @@ static struct tm *date_conv_ftime(struct tm *tm_time, const char *t_string)
118#define DATE_OPT_SET 0x02 118#define DATE_OPT_SET 0x02
119#define DATE_OPT_UTC 0x04 119#define DATE_OPT_UTC 0x04
120#define DATE_OPT_DATE 0x08 120#define DATE_OPT_DATE 0x08
121#define DATE_OPT_REFERENCE 0x10 121#ifdef CONFIG_FEATURE_DATE_ISOFMT
122# define DATE_OPT_TIMESPEC 0x10
123#endif
122 124
123int date_main(int argc, char **argv) 125int date_main(int argc, char **argv)
124{ 126{
@@ -156,7 +158,7 @@ int date_main(int argc, char **argv)
156 if(opt & 0x80000000UL) 158 if(opt & 0x80000000UL)
157 bb_show_usage(); 159 bb_show_usage();
158#ifdef CONFIG_FEATURE_DATE_ISOFMT 160#ifdef CONFIG_FEATURE_DATE_ISOFMT
159 if(opt & DATE_OPT_REFERENCE) { 161 if(opt & DATE_OPT_TIMESPEC) {
160 if (!isofmt_arg) { 162 if (!isofmt_arg) {
161 ifmt = 1; 163 ifmt = 1;
162 } else { 164 } else {