Re: Re: PEAR:Date

From: Date: Thu, 31 Oct 2002 05:35:13 +0000
Subject: Re: Re: PEAR:Date
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2572@lists.php.net to get a copy of this message
"Wolfram Kriesing" <lists@kriesing.de> wrote in message news:3DC01FE9.4070709@kriesing.de... > what do you think of only handling timestamps inside the date-class > and letting the I18N package do the transformation. i am exactly sure > of how to do that and what might be the best set up ... it was just a > quick thought actually this is what Java did for essentially the same reason. Date storage and formatting are now separated concerns. > or may be ... > > like this: > // setup an i18n object which knows about the country, etc. > // and has methods to convert dates, based on timestamps > $i18n = new I18N( $myLanguage ); > $date = new Date( $i18n ); > again, this is kinda what Java does through the Locale class. Also what alot of what PEAR::Date handles is relegated in Java to the Calendar class and subclasses. sorry for all the Java reference, but the project im working on implements Java-like functionality in this area. > may be this makes sense, may be not. > let me say again, i have not given it too much thought ... its just a > quick idea - may be u just toss it right away > this is actually on point. the only issue is that there needs to be a more thorough discussion and eventual movement towards some sort of I18N standardization in PHP. l0t3k

« previous php.pear.general (#2572) next »