Subject: bug#7866: Problem with date +%s -d

From: "Arvizu, Bob (CONT)" <[email-masked]>
Date: Wed, 19 Jan 2011 15:14:20 -0500

Thanks, Gilles!!

Daylight savings didn't occur to me!!  
That's great, because that means there's no bug!!

Thanks!!!!
-Bob

-----Original Message-----
From: Gilles Espinasse [mailto:[email-masked]] 
Sent: Wednesday, January 19, 2011 3:09 PM
To: [email-masked]; Arvizu, Bob (CONT)
Cc: Barrar, John; Sheth, Amit (CONT)
Subject: Re: bug#7866: Problem with date +%s -d 

----- Original Message ----- 
From: "Arvizu, Bob (CONT)" <[email-masked]>
To: <[email-masked]>
Cc: "Barrar, John" <[email-masked]>; "Sheth,Amit (CONT)"
<[email-masked]>
Sent: Wednesday, January 19, 2011 7:51 PM
Subject: bug#7866: Problem with date +%s -d

> Folks,
>
> fyi ...
> I've discovered a problem with the "date +%s -d Date" command on
> Linux xxxxxx 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 17:56:21 EST 2010
>  i686 i686 i386 GNU/Linux
> and
> Linux yyyyyy 2.6.9-89.0.28.ELlargesmp #1 SMP Thu Jul 22 18:24:58 EDT 2010
> x86_64 x86_64 x86_64 GNU/Linux
>
> date +%s -d 20110313
> 1299992400
> date +%s -d 20110314
> 1300075200
> echo $(( 1300075200 - 1299992400 ))
> 82800
>
>
Thank for the report.
This is addressed in FAQ
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

this should show the timezone names switching time the 13 March :
cd /usr/share/zoneinfo/posix && find ./ -type f -exec zdump -v {} \; | grep
'2011' | grep 'Mar 13'

Gilles
</pre>

The information contained in this e-mail is confidential and/or proprietary
<br>
to Capital One and/or its affiliates. The information transmitted herewith
<br>
is intended only for use by the individual or entity to which it is
<br>
addressed.  If the reader of this message is not the intended recipient,
<br>
you are hereby notified that any review, retransmission, dissemination,
<br>
distribution, copying or other use of, or taking of any action in reliance
<br>
upon this information is strictly prohibited. If you have received this
<br>
communication in error, please contact the sender and delete the material
<br>
from your computer.
<br>

</pre>

The information contained in this e-mail is confidential and/or proprietary

to Capital One and/or its affiliates. The information transmitted herewith

is intended only for use by the individual or entity to which it is 

addressed.  If the reader of this message is not the intended recipient, 

you are hereby notified that any review, retransmission, dissemination, 

distribution, copying or other use of, or taking of any action in reliance 

upon this information is strictly prohibited. If you have received this 

communication in error, please contact the sender and delete the material 

from your computer.