@hebcal/core
    Preparing search index...

    Namespace greg

    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:

    Namespace Top-level equivalent
    greg.abs2greg abs2greg
    greg.daysInMonth daysInGregMonth
    greg.greg2abs greg2abs
    greg.isDate isDate
    greg.isLeapYear isGregLeapYear
    import {greg} from '@hebcal/hdate';
    greg.greg2abs(new Date(2008, 10, 13)); // 733359
    greg.isLeapYear(2024); // true
    abs2greg
    daysInMonth
    greg2abs
    isDate
    isLeapYear