RE: [PEAR-DEV] I18N_DateTime unsing static instance

From: Date: Wed, 21 May 2003 15:05:38 +0000
Subject: RE: [PEAR-DEV] I18N_DateTime unsing static instance
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16586@lists.php.net to get a copy of this message
> From: Pierre-Alain Joye [mailto:paj@pearfr.org] > Sent: Wednesday, May 21, 2003 5:04 PM > On Wed, 21 May 2003 17:00:19 +0200 > "Lukas Smith" <smith@backendmedia.com> wrote: > > > A singleton will not really safe me here nor the syntax improvement > > from php5. I just want to be able to do this translation in a function > > without starting to global, instantiate, call a singleton. But maybe I > > am thinking about a situation that does not exist in real life, > > because I am not yet using the i18n class. > > Huh :). Well, how do you want to get the translation? a simple function? $date = I18N_DateTime::formatShort($timestamp,'de_DE'); regards, Lukas

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