Reading the lunar fields
lunar.day is 1–15 and lunar.phase is waxing (កើត) or waning (រោច). lunar.month is 1–14 in the order មិគសិរ, បុស្ស, មាឃ, ផល្គុន, ចេត្រ, ពិសាខ, ជេស្ឋ, អាសាឍ, បឋមាសាឍ, ទុតិយាសាឍ, ស្រាពណ៌, ភទ្របទ, អស្សុជ, កក្ដិក; months 9 and 10 only appear in leap-month years (leapMonth: true).
The Buddhist Era year (beYear) and the animal year change at Khmer New Year in April, and the sak changes on the Leung Sak day, so dates in early April still belong to the previous Khmer year. textKm and textEn give the whole date as one ready-to-show line.
Frequently asked questions
Which years are supported?
1900 to 2100 for lunar dates and holidays. Khmer New Year times are available for 2016–2030.
What is a sila day?
ថ្ងៃសីល is a Buddhist holy day on the 8th and 15th waxing day and the 8th and last waning day. The sila field is true on those days.
Is it accurate?
It follows the traditional calculation used by the Kode4U Khmer Calendar app. Official holiday changes announced late by the government are not included automatically.
Do I need an API key?
No. Call it directly from your app; CORS is open for browser apps too.