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

Re: sarge and DST



> Which time zone is "HST"?
> $ TZ=EST5EDT date
> Tue Mar  6 21:49:44 EST 2007
> $ TZ=EST5EDT date -d '+168 hours'
> Tue Mar 13 22:49:40 EDT 2007
> Looks OK to me.  (If you say +N days that ends up at the same time of
> day local time.)

also as Luca Filipozzi pointed out to me sarge has proper table of
discontinuities, so everything seems to converge to weird behavior of
date -d '+N days'

,---
| *$> ssh $sarge zdump -v US/Pacific | grep 2007
| US/Pacific  Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
| US/Pacific  Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
| US/Pacific  Sun Nov  4 08:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
| US/Pacific  Sun Nov  4 09:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 PST isdst=0 gmtoff=-28800
|
| $> ssh $sid zdump -v US/Pacific | grep 2007
| US/Pacific  Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
| US/Pacific  Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
| US/Pacific  Sun Nov  4 08:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
| US/Pacific  Sun Nov  4 09:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 PST isdst=0 gmtoff=-28800
`---



-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



Reply to: