Calendar and astronomy
Nhat Nguyet blog posts on calendar and astronomy: the lunar calendar, solar terms, stems and branches, and how we compute and check the calendar.
Latest postThe Vietnamese and Chinese lunar calendars differ on 2,814 days: the data and how to check itIn Vietnam and Beijing time, the 1900 to 2100 lunar calendars differ on 2,814 days and New Year differs in 10 years, most of all 1985. Recompute it in Python.
Add the lunar calendar, festivals and death anniversaries to your app in TypeScript or Python
How Bát Tự builds the four pillars, and why the lunar month is the wrong month pillar
Where Nhat Nguyet's festival dates and prayer texts come from, and how the dates are computed
Test your Tử Vi or lunar calendar library against shared test cases
How Nhat Nguyet computes the lunar calendar and the 24 solar terms, and how far off it isNhat Nguyet's lunar calendar is computed from Sun and Moon positions and checked against NASA, IMCCE and USNO: solar terms now 0.27 minutes off on average.
How stems and branches, the sixty-pair cycle, nạp âm and the 28 mansions follow from the Julian dayA day's stem is (JDN + 9) mod 10, its branch (JDN + 1) mod 12; years, months, hours, nạp âm and 28 mansions are cycles too, checked by invariants.
Reminders for the whole family: anniversaries, tasks, prayers and photos in one placeNhat Nguyet reminders tell the whole family about a lunar anniversary, split the preparations, open the right prayer and keep each year's photos.
Nhat Nguyet 2.0: one family calendar, wherever everyone livesVersion 2.0.0: a new Vietnamese painting on the calendar each day, a fresh look on every screen, family comments and photos, reminders across time zones.
One reminder, the whole family: set a lunar death anniversary once, and everyone is told every yearSet a death anniversary, full moon or Tết by lunar date once, and the family group is told every year on phone, web and watch, with a shared plan and photos.
From knowledge to formulas, tools and personalization: a Bát Tự exampleUsing a Bát Tự chart for 2 February 1990: how one line in Sanming Tonghui becomes a formula, a tool and a result calculated for each person.
Nhat Nguyet app 1.0.8: plan death anniversaries with the family, a morning summary, photos by yearVersion 1.0.8 adds a plan for each anniversary: choose the type, share tasks, comment in the group. Plus a morning summary, photos by year and two new tools.