kawoou / AnyDate

Swifty Date & Time API inspired from Java 8 DateTime API.
MIT License
190 stars 13 forks source link

Add lunar calendar system #20

Open DaveDev42 opened 6 years ago

DaveDev42 commented 6 years ago

What is lunar calendar?

Lunar calendar

Lunar calendar is a calendar based upon cycles of the Moon's phases.

Gregorian calendar is also common and legal use in most countries, but also traditional lunar and lunisolar calendears continue to be used in many countries to determine religious festivals and national holidays.

But, unfortunately, unlike gregorian calendar, there are several seperated lunar calendar systems:

I can strongly urge that: good application/solution/service have to understand about users and also their habit, tradition and life; even if they are using some unfamiliar calendar.

If AnyDate supports about all other calendars, it can very helpful to development global things.

MenoData commented 6 years ago

Interesting to see other people working on calendars. My calendar library might inspire you, too.

I am actually implementing some East Asian calendars in Java but the Mongolian calendar is still like a white sheet for me. The best I found was the insufficient wikipedia page. Is it like the Chinese calendar but calculated for a different geographical longitude or time zone offset (which one exactly) ? Do you have other sources explaining the calculation details?