UNPKG

@hebcal/hdate

Version:

converts between Hebrew and Gregorian dates using Rata Die (R.D.) algorithm by Dershowitz and Reingold

15 lines (14 loc) 529 B
/** * Returns a string similar to `Date.toISOString()` but in the * timezone `tzid`. Contrary to the typical meaning of `Z` at the end * of the string, this is not actually a UTC date. */ export declare function getPseudoISO(tzid: string, date: Date): string; /** * Returns number of minutes `tzid` is offset from UTC on date `date`. */ export declare function getTimezoneOffset(tzid: string, date: Date): number; /** * Returns YYYY-MM-DD in the local timezone */ export declare function isoDateString(dt: Date): string;