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
15 lines (12 loc) • 438 B
text/typescript
// Implement partial formulas in Svante's paper.
import {
M0, M1, M2
} from '../constants';
/**
* meanDate(day, monthCount) - corresponding to the linear mean motion of the moon
* @param {number} day - the tibetan day
* @param {number} monthCount - month count since beginning of epoch
* @returns {number}
*/
const meanDate = (day: number, monthCount: number): number => monthCount * M1 + day * M2 + M0;
export default meanDate;