@zenchef/date-fns-timezone
Version:
Parsing and formatting date strings using IANA time zones for date-fns.
12 lines (9 loc) • 306 B
TypeScript
type DateInput = string | number | Date
interface FormatOptions {
locale?: Object
}
interface FormatTimeZoneOptions extends FormatOptions {
timeZone: string
}
declare function formatToTimeZone (dateInput: DateInput, format: string, options: FormatTimeZoneOptions): string
export { formatToTimeZone }