tz-fns

1.4.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i tz-fns

Weekly Downloads

1

Version

1.4.0

License

Apache-2.0

Unpacked Size

20.6 kB

Total Files

8

Last publish

Collaborators

  • olav