Module calendrica-tibetan
Tibetan calendar conversions.
Ported from “Calendrical Calculations” (4th edition) by Nachum Dershowitz and Edward M. Reingold. Original Lisp code (CALENDRICA 4.0) is Apache 2.0 licensed.
Info:
- Release: 0.2 2026-09-21
Functions
| fixed_from_tibetan (t_date) | Fixed date corresponding to Tibetan lunar date t_date. |
| tibetan_from_fixed (date) | Tibetan lunar date {year,month,leap_month,day,leap_day} corresponding to fixed date. |
| tibetan_leap_month_p (t_year, t_month) | True if month t_month is a leap month in Tibetan year t_year. |
| tibetan_leap_day_p (t_year, t_month, t_day) | True if day t_day is a leap day in Tibetan month t_month of year t_year. |
Functions
- fixed_from_tibetan (t_date)
-
Fixed date corresponding to Tibetan lunar date
t_date.Parameters:
- t_date table Tibetan date {year, month, leap_month, day, leap_day}.
Returns:
-
number
Fixed date.
- tibetan_from_fixed (date)
-
Tibetan lunar date {year,month,leap_month,day,leap_day} corresponding to fixed
date.Parameters:
- date number Fixed date.
Returns:
-
table
{year, month, leap_month, day, leap_day}
- tibetan_leap_month_p (t_year, t_month)
-
True if month
t_monthis a leap month in Tibetan yeart_year.Parameters:
- t_year number Tibetan year.
- t_month number Tibetan month.
Returns:
-
boolean
- tibetan_leap_day_p (t_year, t_month, t_day)
-
True if day
t_dayis a leap day in Tibetan montht_monthof yeart_year.Parameters:
- t_year number Tibetan year.
- t_month number Tibetan month.
- t_day number Tibetan day.
Returns:
-
boolean