UNPKG

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

14 lines (13 loc) 555 B
import { Year } from '../types'; /** * Figures out a year's info based on the Tibetan calendar, ex. the 3rd year of the 15th Rabjung calendrical cycle. * @param {object} arg * @param {number} arg.rabjungCycle : number of the cycle * @param {number} arg.rabjungYear : number of the year within the cycle, from 1 to 60. * @returns {null | Year} */ declare const getYearFromRabjung: ({ rabjungCycle, rabjungYear }: { rabjungCycle: number; rabjungYear: number; }) => Year; export default getYearFromRabjung;