| Walt Mankowski on Wed, 29 Aug 2001 02:30:13 +0200 |
|
On Tue, Aug 28, 2001 at 06:56:57PM -0400, A.N.Varady wrote:
> Walt Mankowski wrote:
>
> >
> > 1:46 am GMT and 9:46 pm EDT are both right. 2:46 am EDT (which is
> > the time the original poster gave) is wrong.
>
>
> Cool! Could someone explain why "date -d '1970-01-01 1000000000
> sec'" yields the "incorrect" time?
"date -d 1970-01-01" gives clue:
Wed Dec 31 00:00:00 EST 1969
Epoch time starts at midnight, January 1, 1970, GMT. You're starting
from midnight EST, which is GMT + 5 hours. Then date converts it to
EDT, which is an hour later than EST, and that's why it overshoots GMT
by an hour.
Walt
Attachment:
pgpPqYyFH45HP.pgp
|
|