On Mon, 31 Mar 2003, Daisuke Maki wrote: > So, now that I've thought about this a bit more -- my question turns to > this: If DateTime::Format::Japanese is where my original idea is > supposed to go (which I agree, now that I know of its existance), > wouldn't that effectively mean that that's where all of the > DateTime::Language::* functionality also should go? Aren't the > functionalitites in those modules also formatting -- why are month names > and day names any different from other locale/language specific notation > like what I mentioned in my previous mail?
They're special because they're _really_ simple, and they're _really_ commonly used ;) That's about it, and yes, it is not consistent, but it's relatively convenient. To put it another way, what you're discussing is a _locale_ issue (it's how dates are shown in your area) as opposed to a _language_ issue (the _names_ of things, regardless of display). > I think I'd feel better if all of that locale/language specific stuff > was in one place? Maybe strftime() should be absorbed there ...? > > e.g. > my $english = > DateTime::Format::English->format_datetime( $dt, $template ); > ## instead of DateTime->strftime() > my $japanese = > DateTime::Format::Japanese->format_datetime( $dt, $template ); Having strftime() in DateTime.pm is also inconsistent, but I suspect most people find it pretty useful, so I'm inclined to leave it there. I'm actually a big fan of consistency, but I'm an even bigger fan of usefulness ;) > > What Daisuke (that's your personal name, right?) > > Yep :) Chinese names are easy, but I can't always figure this out with Japanese names. See, if you guys had just stuck to the one syllable per character thing, it'd be so much easier ;) -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/