Talk about glibc locale format

Olaf Meeuwissen olaf.meeuwissen@avasys.jp
Wed Jul 6 07:02:00 GMT 2005


Keld Jørn Simonsen <keld@dkuug.dk> writes:

> On Tue, Jul 05, 2005 at 09:18:23AM +0900, Olaf Meeuwissen wrote:
>> Keld Jørn Simonsen <keld@dkuug.dk> writes:
>> 
>> 
>> FYI, the Hebrew calendar has 13 months in a "leap" year.  The Baha'i
>> calendar has 20 months.
>
> How is this controlled? I know one can figure out when easter is each
> year, is it an algorithm like that? (I know, should google...)

There is a nice book called 'Calendrical Calculations' by Nachum
Dershowitz and Edward M. Reingold (ISBN 0-521-564-74-3) that has lots
of info on a large number of calendars.

BTW, these are the people behind emacs' calendar mode.

To get back to your question, a Hebrew year y is a "leap" year if

  (7y + 1) mod 19 < 7

> And Baha'i - is that calculable?

By the looks of what in the book, yes.

Hope this helps,
-- 
Olaf Meeuwissen                          EPSON AVASYS Corporation, LAN
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D 6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --               LPIC-2



More information about the Libc-locales mailing list