On 10/6/03 2:12 PM, Dave Rolsky at [EMAIL PROTECTED] spake thus:
> Anyway, I've
> applied it mostly, except that for era I used "ACE" and "BCE", because I'm
> really not comfortable favoring one religion over another inside the core
> code.

That's cool .. I imagine that we'll change it in short-order to get it from
the Locale .. which makes me think of something that Locale might need ..

$locale = new DateTime::Locale::en_AU;

$locale->eras();
# returns ('BCE' and 'ACE')

$locale->eras('BC', 'AD');
# returns ('BC' and 'AD') and sets these in the $locale (but not
DT::Locale::en_AU)

There would be similar accessors for all other parts of Locale also.

There should also be a
   $locale->saveas("/path/to/file.pm");
which could save a new module using the changes
and a matching
   $locale = DateTime::Locale::load("/path/to/file.pm");


I'd like to see this because:
1. I'd prefer to use AD and BC, but understand that others want BCE and ACE
(or CE)
2. Locale says Aussies like the date form dd/mm/yy whereas, some if not most
of use use dd/mm/yyyy as the short date format
3. There is a potential that at my company we use the name weedend1 and
weekend2 instead of Saturday and Sunday (OK, not likely but there'd be call
for local dialects!)

Cheers!
Rick

Reply via email to