I am trying to implement EnumCalendarInfo and would like to know if any locales have multiple calendars, where the settings for the extra calendars would be in the nls file, and if any calendars have their own seperate file.
William Lahti wrote:
I am trying to implement EnumCalendarInfo and would like to know if any locales have multiple calendars, where the settings for the extra calendars would be in the nls file, and if any calendars have their own seperate file.
I'm not familiar with the Windows API in that respect, but I can tell you that both Jews and Muslims have their own calenders (as well as Chinese, Hindus etc, IIRC). At least in Israel, the gregorian is the main calender, but having the ability to view Jewish dates would be nice.
http://libhdate.sourceforge.net/ (Hebrew dates)
There is (or used to be) also a project with the same name for Muslim dates, but I can't seem to locate it. The best I can do is http://lists.arabeyes.org/archives/developer/2003/December/msg00049.html
Shachar
Japanese also use a different system to indicate the year. They use the year of the emperor. For example today's year is 14 Heisei (The current emperor has been in power scense 1990.) When Emperor Hirohito died in 1989, Japanese programmers had to reprogram thier computers to deal with the new "year" as many were hard-coded for the old emperor. Y2K wasn't much of a problem because the Japanese had updated thier computers ten years pervious.
Nowadays on computers, they simply list the julian year, then month, then day, and then the character of day of the week
2002(sei)/05(getsu)/14(hi) (Getsuyobi)
abbreviated, it looks like this --> 04.05.24
Here;s what the command "date" gave me as output
2004年 5月 24日 月曜日
Here's what cal gives me...
5月 2004 日 月 火 水 木 金 土 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Just remeber, year comes first and the date is seperated by periods if you want to drop the characters.
--- Shachar Shemesh wine-devel@shemesh.biz wrote:
William Lahti wrote:
I am trying to implement EnumCalendarInfo and would
like to know if any
locales have multiple calendars, where the settings
for the extra calendars
would be in the nls file, and if any calendars have
their own seperate
file.
I'm not familiar with the Windows API in that respect, but I can tell you that both Jews and Muslims have their own calenders (as well as Chinese, Hindus etc, IIRC). At least in Israel, the gregorian is the main calender, but having the ability to view Jewish dates would be nice.
http://libhdate.sourceforge.net/ (Hebrew dates)
There is (or used to be) also a project with the same name for Muslim dates, but I can't seem to locate it. The best I can do is
http://lists.arabeyes.org/archives/developer/2003/December/msg00049.html
Shachar
-- Shachar Shemesh Lingnu Open Source Consulting http://www.lingnu.com/
Joshua Walker wrote:
Japanese also use a different system to indicate the year. They use the year of the emperor. For example today's year is 14 Heisei (The current emperor has been in power scense 1990.) When Emperor Hirohito died in 1989, Japanese programmers had to reprogram thier computers to deal with the new "year" as many were hard-coded for the old emperor. Y2K wasn't much of a problem because the Japanese had updated thier computers ten years pervious.
Nowadays on computers, they simply list the julian year, then month, then day, and then the character of day of the week
2002(sei)/05(getsu)/14(hi) (Getsuyobi)
abbreviated, it looks like this --> 04.05.24
Don't get me started about representation.
First - the dates. Arabic dates are a bit simpler - it's a lunar calender (from moon birth until moon birth), which means that the months jump around the year. So, for example, Ramadan, the fasting month, can happen during winter or summer.
As for the Hebrew calender.... It's a lunar calender, with a leap MONTH added once every three to four years, to make sure it doesn't drift too far away from the seasons. So my birthday, which according to the Hebrew calender happens on the 21st of the SECOND Adar........
Then there is representation. Numerological letters are used. aleph means 1, bet means 2, yod means 10, kaf (the next one) means 20, and so on until 90, and then Kof means 100, and Taf (the last letter) means 400 (22 characters altogether). The numbers are added, so this year is ���"� (Taf - 400 Shin- 300 Samech - 60 Daled -4, 764 altogether).
Of course, this is omiting the thousands. The real year is �'���"�, or 5764. I was never sure what it's counting from. Naturally, the months are also displayed like that.
Oh, and did I mention that a day ends at sunset? Sabbath is kept from the sunset on Friday (actually, half hour before as a safty measure) until sunset on Saturday (half hour after).
Shachar