UNPKG

@zenchef/date-fns-timezone

Version:

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

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