Re: ANNOUNCE: DateTime::Fiction::JRRTolkien::Shire 0.02

2003-12-08 Thread Mathieu Arnold
+-Le 07/12/2003 17:30 -0700, Tom Braun écrivait : | First Release. Port of Date::Tolkien::Shire to the DateTime framework. | | Includes everything Date::Tolkien::Shire did, including the on this date | in history stuff. Times are maintained for conversion but not otherwise | supported (How do

RE: ANNOUNCE: DateTime::Fiction::JRRTolkien::Shire 0.02

2003-12-08 Thread Tom Braun
Shouldn't this be a DateTime::Calendar:: thing ? This was discussed a while back (see Dave Rolsky's email Re: Final Word on Imaginary Calendars dated April 23). The decision was made to seperate out calendars from works of fiction from real calendars by putting them in a seperate namespace. So

How to get a localized string

2003-12-08 Thread Doug Treder
Couldn't find this in the FAQ... If I create a datetime with a locale, $dt = DateTime-now(locale='fr_FR'); I know there is a locale in that datetime object... $dt-locale and I know that locale knows what formatting it prefers (such as day-month-year versus month-day-year

Re: How to get a localized string

2003-12-08 Thread Dave Rolsky
On Mon, 8 Dec 2003, Doug Treder wrote: and I know that locale knows what formatting it prefers (such as day-month-year versus month-day-year abbreviations). But is there an less verbose way to pull it out than this: $dt-strftime($dt-locale-date_formats-{'medium'}); I was hoping for

ANNOUNCE: DateTime::Locale 0.06

2003-12-08 Thread Dave Rolsky
0.06 2003-12-08 - The DateTime::Locale docs now includes docs for all the methods that a locale object has. No notable code changes. -dave /*=== House Absolute Consulting www.houseabsolute.com ===*/

Re: How to get a localized string

2003-12-08 Thread Doug Treder
So...it would look like: $dt-strftime($dt-locale-medium_date_format); could we get a shortcut method like: $dt-locale_strftime('medium'); the object should be able to use the locale it already contains; I shouldn't have to pass it in. We already have shortcuts for -mdy, -dmy, -hms

Re: How to get a localized string

2003-12-08 Thread Dave Rolsky
On Mon, 8 Dec 2003, Doug Treder wrote: the object should be able to use the locale it already contains; I shouldn't have to pass it in. We already have shortcuts for -mdy, -dmy, -hms so there should be a nice little shortcut for a locale-aware getter. The presence of the former in the

Re: How to get a localized string

2003-12-08 Thread Doug Treder
Good point, for example: $dt = DateTime-now(locale=fr_FR); # france french print $dt-strftime('%x'); '9 déc. 03' $dt = DateTime-now(locale=fr_CA); # canadian french print $dt-strftime('%x'); '03-12-09' the medium format may or may not be numeric. or is one of the two locale

Re: ANNOUNCE: DateTime::Fiction::JRRTolkien::Shire 0.02

2003-12-08 Thread Joshua Hoblitt
On Mon, 8 Dec 2003, Mathieu Arnold wrote: Shouldn't this be a DateTime::Calendar:: thing ? http://datetime.perl.org/developer/namespace.html -J --

Re: DateTime - no Arizona time zone?

2003-12-08 Thread Dave Rolsky
[ cc'ing this back to the list ] On Mon, 8 Dec 2003, Mike Schilli wrote: I'm using your DateTime::TimeZone module extensively right now -- it's great! Hey, one thing I noticed: How can you determine the time zone of Arizona, because they don't have daylight savings time there (besides in the

Re: How to get a localized string

2003-12-08 Thread Dave Rolsky
On Mon, 8 Dec 2003, Doug Treder wrote: Good point, for example: $dt = DateTime-now(locale=fr_FR); # france french print $dt-strftime('%x'); '9 déc. 03' $dt = DateTime-now(locale=fr_CA); # canadian french print $dt-strftime('%x'); '03-12-09' the medium format may or

Re: How to get a localized string

2003-12-08 Thread Henry Sobotka
Dave Rolsky wrote: On Mon, 8 Dec 2003, Doug Treder wrote: $dt = DateTime-now(locale=fr_CA); # canadian french print $dt-strftime('%x'); '03-12-09' the medium format may or may not be numeric. or is one of the two locale modules wrong? That's just what the locale data