Gregorian date helper functions.
These are aliases retained for backwards compatibility. Each member simply forwards to the identically-behaving top-level function, which is the preferred form in new code because it tree-shakes cleanly:
greg.abs2greg
greg.daysInMonth
greg.greg2abs
greg.isDate
greg.isLeapYear
import {greg} from '@hebcal/hdate';greg.greg2abs(new Date(2008, 10, 13)); // 733359greg.isLeapYear(2024); // true Copy
import {greg} from '@hebcal/hdate';greg.greg2abs(new Date(2008, 10, 13)); // 733359greg.isLeapYear(2024); // true
Gregorian date helper functions.
These are aliases retained for backwards compatibility. Each member simply forwards to the identically-behaving top-level function, which is the preferred form in new code because it tree-shakes cleanly:
greg.abs2greggreg.daysInMonthgreg.greg2absgreg.isDategreg.isLeapYearExample