On Mon, 31 Mar 2003, Daisuke Maki wrote:

> I got the CVS version of DateTime.pm, and I noticed there wasn't a
> single Asian DateTime::Language module. So I thought I might do a quick
> hack and get you guys the Japanese version...

It's certainly welcome.

> Then I noticed that DateTime::Language only has attributes for month
> names, day names, and am/pm. What about time representation? And also,
> there's the suffix characters that one might use in Japanese..

I'm not sure what you mean about time representation.  If you're doing it
with Arabic numerals, there's not much to internationalize (besides the
suffixes you mention below).

> For those of you who can't read the above, basically each component is
> followed by a character that denotes what the previous component stands
> for like this:
>
>    2003(year)12(month)31(days) 14(hours)32(minutes)24(seconds)
>
> I suspect that same goes for some Asian languages.

Chinese certainly does this.  But I suspect that "2003-12-31 14:32:24" is
pretty readable for Japanese and Chinese people.

> Has there been any thoughts put into this?

Um, not really ;)

The DateTime::Language modules are solely to provide month and day names
for each language.  But at least in Chinese (and I'd guess Japanese as
well)  there isn't any such thing as month or day _names_, as such.  In
Chinese, the "name" for January is "first month" (yi1 yue4 in PinYin).

All this is to say that I don't think there's necessarily anything
corresponding to month and day names in the Chinese language.  There is,
however, something corresponding to AM and PM (shang4 wu3 and xia4 wu3).

I almost wonder if this doesn't belong as a DateTime::Format module,
Really, what you're talking about is formatting a date for _presentation_
in a given system (Japanese, Chinese).  This is a little different than
simply providing the "raw" month or day names.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to