{"library":"date-fns-tz","type":"library","category":null,"description":"date-fns-tz provides robust time zone functionality for date-fns v3 and v4, leveraging the browser's native `Intl` API to avoid bundling large time zone data files. The current stable version is 3.2.0. This library is designed to work seamlessly with `date-fns`'s immutable `Date` object approach, offering functions like `formatInTimeZone` to format dates in a specified IANA time zone, and conversion utilities such as `toZonedTime` and `fromZonedTime` for shifting dates between UTC and specific time zones. It is a peer dependency of `date-fns`, requiring a compatible version (`^3.0.0 || ^4.0.0`). Its release cadence is tied to major `date-fns` versions, with minor updates for features and bug fixes. Key differentiators include its lightweight nature due to `Intl` API reliance and its adherence to the `date-fns` philosophy of pure functions and native Date objects.","language":"javascript","status":"active","version":"3.2.0","tags":["javascript","date-fns","timezone","time zone","date","time","parse","format","immutable","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install date-fns-tz","imports":["import { formatInTimeZone } from 'date-fns-tz'","import { toZonedTime } from 'date-fns-tz'","import { fromZonedTime } from 'date-fns-tz'","import { format } from 'date-fns-tz'"]},{"cmd":"yarn add date-fns-tz","imports":[]},{"cmd":"pnpm add date-fns-tz","imports":[]}],"homepage":"https://date-fns.org","github":"https://github.com/marnusw/date-fns-tz","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/date-fns-tz","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/date-fns-tz/compatibility"}}