@progress/kendo-date-math
Version:
Kendo UI typescript package exporting functions for Date manipulations
12 lines (11 loc) • 391 B
TypeScript
/**
* @hidden
*
* A function that calculates the time offset based on zone name.
*
* @param timezone - The timezone name. For example, `America/Chicago`, `Europe/Sofia`.
* @param date - A date for which the zone rule will be located.
*
* @return - Returns the timezone offset in minutes at the specified time.
*/
export declare const offset: (timezone: any, date?: Date) => number;