UNPKG

@zenchef/date-fns-timezone

Version:

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

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