localized-dst
Version:
Determine if a date is in daylight savings time by country/state/city
12 lines (11 loc) • 508 B
TypeScript
import { DstRefs } from './dst/models';
import { CanadaDstLocation } from './dst/canada-dst';
import { FranceDstLocation } from './dst/france-dst';
import { UsaDstLocation } from './dst/usa-dst';
interface Options {
location: CanadaDstLocation | FranceDstLocation | UsaDstLocation;
failIfNotExisting?: boolean;
}
export declare const getDstRef: (location: Options['location'], failIfNotExisting?: boolean) => DstRefs;
export declare const isDst: (date: Date, options: Options) => Boolean;
export {};