date-fns-tz
Version:
Time zone support for date-fns v3 with the Intl API
8 lines (7 loc) • 401 B
TypeScript
import type { FormatOptionsWithTZ } from '../../index.js';
/**
* Returns the formatted time zone name of the provided `timeZone` or the current
* system time zone if omitted, accounting for DST according to the UTC value of
* the date.
*/
export declare function tzIntlTimeZoneName(length: Intl.DateTimeFormatOptions['timeZoneName'], date: Date, options: FormatOptionsWithTZ): string | undefined;