Mayan calendar
- convertdate.mayan.from_gregorian(year, month, day)
- convertdate.mayan.from_jd(jd)
Calculate Mayan long count from Julian day
- convertdate.mayan.haab_monthcalendar(baktun=None, katun=None, tun=None, uinal=None, kin=None, jdc=None)
For a given long count, return a calender of the current haab month, divided into tzolkin “weeks”
- convertdate.mayan.haab_monthcalendar_prospective(haabmonth, jdc)
Give the monthcalendar for the next occurance of given haab month after jdc
- convertdate.mayan.lc_to_haab(baktun, katun, tun, uinal, kin)
- convertdate.mayan.lc_to_haab_tzolkin(baktun, katun, tun, uinal, kin)
- convertdate.mayan.lc_to_tzolkin(baktun, katun, tun, uinal, kin)
- convertdate.mayan.longcount_generator(baktun, katun, tun, uinal, kin)
Generate long counts, starting with input
- convertdate.mayan.month_length(month)
Not the actual length of the month, but accounts for the 5 unlucky/nameless days
- convertdate.mayan.next_haab(month, jd)
For a given haab month and a julian day count, find the next start of that month on or after the JDC
- convertdate.mayan.next_tzolkin(tzolkin, jd)
For a given tzolk’in day, and a julian day count, find the next occurrance of that tzolk’in after the date
- convertdate.mayan.next_tzolkin_haab(tzolkin, haab, jd)
For a given haab-tzolk’in combination, and a Julian day count, find the next occurrance of the combination after the date
- convertdate.mayan.to_gregorian(baktun, katun, tun, uinal, kin)
- convertdate.mayan.to_haab(jd)
Determine Mayan Haab “month” and day from Julian day
- convertdate.mayan.to_jd(baktun, katun, tun, uinal, kin)
Determine Julian day from Mayan long count
- convertdate.mayan.to_tzolkin(jd)
Determine Mayan Tzolkin “month” and day from Julian day
- convertdate.mayan.translate_haab(h)
- convertdate.mayan.translate_tzolkin(tz)
- convertdate.mayan.tzolkin_generator(number=None, name=None)
For a given tzolkin name/number combination, return a generator that gives cycle, starting with the input