Re: Proposed new package: Time.

From: Date: Fri, 21 Feb 2003 13:26:03 +0000
Subject: Re: Proposed new package: Time.
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13545@lists.php.net to get a copy of this message
On Fri, 21 Feb 2003 10:18:26 -0300 Leandro Lucarella <luca@llucax.hn.org> wrote: > I don't think so. I need just to operate times, if I use a Date_Time > class is an useless overhead. I thought maybe we can add a > Date_DateTime package or so to mix both. > Another reason is (even when now it just works with 24 hs) I want this > class to support "infinite" hours, say "The proccess takes 78:40:23 > hours" or so, this has no sense in a Date_Time class. > That's why I proposed to be a "root level" class and don't put it on > Date subdirectory. > I want to add a 24hs flag to this class so it can be safe to mix it > with Date to make a Date_Time class. If I understand well, this package is a time span manager ? A time time span should be defined in days, hours, mins and secs, with different methods to get the span value in h:m:s, m:s, or simply seconds. Besides that, a timespan is in most of cases, used with a date, and/or a timezone. For this reason, imho, it is far better to get the whole stuff in one package. Else two packages will be needed, the Time_Span, and Date_Time, which provide a bridge between Date and Time, oooch, this is overdesign/head ;-)) pierre

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