bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date -u vs. CST


From: jidanni
Subject: date -u vs. CST
Date: Thu, 04 Sep 2008 08:34:25 +0800

$ for i in E C M P; do for i in ${i}ST; do echo -n $i:; date -ud "7:00 $i"; 
done; done
EST:Wed Sep  3 12:00:00 UTC 2008
CST:Wed Sep  3 13:00:00 UTC 2008
MST:Wed Sep  3 14:00:00 UTC 2008
PST:Wed Sep  3 15:00:00 UTC 2008
$ for i in E C M P; do for i in ${i}ST; do echo -n $i:; date -d  "7:00 $i"; 
done; done
EST:Thu Sep  4 20:00:00 CST 2008
CST:Thu Sep  4 07:00:00 CST 2008 <-----UH OH
MST:Thu Sep  4 22:00:00 CST 2008
PST:Thu Sep  4 23:00:00 CST 2008

Why should the China zone kick in and out depending on -u? Note that I
object to it being interpreted differently in the input, not the
output.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]