Re: Re: Maintainer of Date_Calc

From: Date: Sun, 12 Aug 2001 13:06:39 +0000
Subject: Re: Re: Maintainer of Date_Calc
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1401@lists.php.net to get a copy of this message
[Erik Hjortsberg <azatoth@hem.passagen.se>] > At 04:33 2001-08-11 +0000, you wrote: > >Ideally, I would be dealing with Date objects, not caring about the interal > >representation, but only caring about creating a Date from some format and > >displaying a Date in some format, and being able to add 40 days or do stuff > >like Nth weekday of month by manipulating and passing in only the Date > >objects, comparing Date objects easily, etc. > > You pretty much sum up how the Date-class works. ;) > I'm not so sure however how I should implement timezones. Either you > set the time-differance explicitly, such as +01 (resolution? should it > be +01:00...) or you set it by using the name, such as GMT. My phone has a timezone called "LNT" (Lhasa Nepal Time?) at GMT+5:45, so I guess you need 15-minute resolution. If you go to http://tycho.usno.navy.mil/tzones.html there are other 15-minute-resolution time zones listed there. > And I'm not quite sure how daylight savings time works, anyone who can > inform me? You should not need to worry about that when calculating dates, as long as the internal representation is _always_ in GMT. The OS should take care of applying DST for local time. - Stig -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.pear.dev (#1401) next »