/** * The date and hour of a time, as much as needed to know on which side of a daylight saving transition it is. * * @typedef {Object} TimeshiftAt * @property {number} [year] * @property {number} [month] From 1 to 12. * @property {number} [day] * @property {number} [hour] Defaults to the middle of the day. */ /** * Daylight saving time in the United States, which tells if "Pacific Time" is -08 (PST) or -07 (PDT) at some time. * * The Uniform Time Act applies since 1967, with a rule that changed several times: * - 2007 and after: from the second Sunday of March to the first Sunday of November, * - 1987 to 2006: from the first Sunday of April to the last Sunday of October, * - 1976 to 1986: from the last Sunday of April to the last Sunday of October, * - 1974 and 1975: from January 6th (February 23rd in 1975) to the last Sunday of October, * - 1967 to 1973: from the last Sunday of April to the last Sunday of October. * Each transition occurs at 02:00. Before 1967 there was no rule common to the states: those times are standard times. */ export class UsDaylightSaving { /** * @param {number} standardMinutes The offset of the standard time of a zone, in minutes east of UTC (-480 for PST). * @param {TimeshiftAt} at * @return {number} The offset of the zone at this time, in minutes east of UTC. */ static timeshift(standardMinutes: number, at: TimeshiftAt): number; /** * @param {TimeshiftAt} at * @return {boolean} If daylight saving time is in effect at this time. */ static isDaylight(at: TimeshiftAt): boolean; /** * @return {{start: {month: number, day: number}, end: {month: number, day: number}} | undefined} The transitions of a year. */ static rule(year: any): { start: { month: number; day: number; }; end: { month: number; day: number; }; } | undefined; /** * @param {number} year * @param {number} month From 1 to 12. * @param {number} nth Which Sunday of the month: 1 for the first one, -1 for the last one. * @return {number} The day of the month. */ static sunday(year: number, month: number, nth: number): number; static isLeap(year: any): boolean; /** * @return {number} A number which orders times of a year. */ static rank(month: any, day: any, hour: any): number; } /** * The date and hour of a time, as much as needed to know on which side of a daylight saving transition it is. */ export type TimeshiftAt = { year?: number; /** * From 1 to 12. */ month?: number; day?: number; /** * Defaults to the middle of the day. */ hour?: number; }; //# sourceMappingURL=UsDaylightSaving.d.mts.map