tibetan-date-calculator
Version:
A library to calculate tibetan calendar details. It is based on Svante Janson's paper www2.math.uu.se/~svante/papers/calendars/tibet.pdf
16 lines (15 loc) • 710 B
TypeScript
/**
* Gives the Julian date for a Tibetan year, month number (leap or not) and Tibetan day.
*
* Does not check that the tibetan day actually exists:
* - If given the date of a skipped day, will return the same Julian date as the day before.
* - If given the date of a duplicate day, returns the Julian date of the second of the two.
*
* @param {number} year - Tibetan year
* @param {number} month - Tibetan month
* @param {boolean} isLeapMonth - true if leap month
* @param {number} day - Tibetan day
* @returns {number} - Julian date
*/
declare const julianFromTibetan: (year: number, month: number, isLeapMonth: boolean, day: number) => number;
export default julianFromTibetan;