UNPKG

@progress/kendo-date-math

Version:

Kendo UI typescript package exporting functions for Date manipulations

19 lines (18 loc) 528 B
import { timezones } from './timezones'; /** * A function that returns the full name of the timezone. * * @param timezone - The timezone name. For example, `America/Chicago`, `Europe/Sofia`. * * @return - Returns the full names of the timezone and the group. * * @example * ```ts-no-run * timezoneTitle('America/Chicago'); // Central Standard Time * ``` */ export var timezoneTitle = function (timezone) { var titles = timezones.titles; var info = titles[timezone] || {}; return info.long || timezone; };