[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in date (cont)
From: |
Manuel de la Torre Juárez |
Subject: |
Bug in date (cont) |
Date: |
Tue, 11 Jun 2002 10:55:31 -0700 |
The conversion from dates into seconds are wrong between
2001-04-01 03:00:00 and 2001-10-28 01:59:59. The inverse
conversion (from secs into date) appears to work fine when
the epoch is 1970-01-01.
Check this out:
> date --date='2001-10-28 01:59:59' +%s
1004259599
> date --date='2001-10-28 02:00' +%s
1004263200
The difference are 3601 seconds.
Check this other one out:
> date --date='2001-04-01 02:00' +%s
986119200
> date --date='2001-04-01 03:00' +%s
986119200
There is no difference, in fact the result:
> date --date='2001-04-01 02:59:59' +%s
986122799
Indicates that the problem is in going into 2001-04-01 03:00.
Regards,
Manuel de la Torre
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in date (cont),
Manuel de la Torre Juárez <=