tz-fns
v1.4.0
Published
DST-aware time zone conversion.
Downloads
1
Readme
tz-fns
Time zone conversion with Intl.DateTimeFormat
.
Example
import { convert } from "tz-fns";
convert("2020-01-15T12:00:00Z", "Europe/Oslo"); // => "2020-01-15T13:00:00+01:00" (CET)
convert("2020-07-15T12:00:00Z", "Europe/Oslo"); // => "2020-07-15T14:00:00+02:00" (CEST)
License
Original code in this repo is licensed under the Apache License 2.0.