RE: Formatting dates for locales/time zones

2006-03-21 Thread Garrett, Philip \(MAN-Corporate\)
> -Original Message- > From: Garrett, Philip (MAN-Corporate) [mailto:[EMAIL PROTECTED] > Sent: Friday, March 17, 2006 7:14 PM > To: datetime@perl.org > Subject: Formatting dates for locales/time zones > > Hi list. Apologies in advance if the formatting is skewed -- using > Outlook web acc

RE: Formatting dates for locales/time zones

2006-03-21 Thread Dave Rolsky
On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote: sub locale_date { my ($date,$locale,$time_zone) = @_; my $fmt = DateTime::Format::Strptime->new(pattern => '%b %Y', locale => $locale, time_zone => $time_zone); return $fmt->format_datetime($date); } $d = DateTime->

RE: Formatting dates for locales/time zones

2006-03-21 Thread Garrett, Philip \(MAN-Corporate\)
> -Original Message- > From: Dave Rolsky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 4:49 PM > To: Garrett, Philip (MAN-Corporate) > Cc: datetime@perl.org > Subject: RE: Formatting dates for locales/time zones > > On Tue, 21 Mar 2006, Garrett, Phil

RE: Formatting dates for locales/time zones

2006-03-21 Thread Bruce Van Allen
On 3/21/06 Garrett, Philip (MAN-Corporate) wrote: >> > So is cloning really the only way to do this? >>Dave Rolsky answered: >> I'm afraid so. But that's what the clone api is for. I'm not sure >> why you're averse to it, it's actually implemented in a way that >> should be quite fast. > >My avers

RE: Formatting dates for locales/time zones

2006-03-21 Thread Dave Rolsky
On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote: My aversion is more philosophical than practical. I'm working on internationalizing some software right now, and (of course) one of the main goals is to decouple presentation from data. I chose DateTime for my date needs only to later f

RE: Formatting dates for locales/time zones

2006-03-22 Thread Garrett, Philip \(MAN-Corporate\)
> -Original Message- > From: Dave Rolsky [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 22, 2006 12:17 AM > To: datetime > Subject: RE: Formatting dates for locales/time zones > > On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote: > > > My avers

RE: Formatting dates for locales/time zones

2006-03-22 Thread Dave Rolsky
On Wed, 22 Mar 2006, Garrett, Philip (MAN-Corporate) wrote: On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote: My aversion is more philosophical than practical. I'm working on internationalizing some software right now, and (of course) one of the main goals is to decouple presentation