UNPKG

date-fns-timezone

Version:

Parsing and formatting date strings using IANA time zones for date-fns.

9 lines (6 loc) 226 B
type DateInput = string | number | Date interface TimeZoneOptions { timeZone: string } declare function formatToTimeZone (dateInput: DateInput, format: string, options: TimeZoneOptions): string export { formatToTimeZone }