tz-offset
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/tz-offset package

0.0.2 • Public • Published

tz-offset

npm npm Build Status dependencies Status devDependencies Status

A lib to work with JavaScript timezone offset

Usage

var tzOffset = require("tz-offset")
tzOffset.offsetOf("America/Sao_Paulo"); // 180.
 
tzOffset.removeOffset(new Date()); // a givend date without timezone offset.
 
tzOffset.timeAt(new Date(), "Europe/London"); // a given date represented in another.

Package Sidebar

Install

npm i tz-offset

Weekly Downloads

58,475

Version

0.0.2

License

ISC

Unpacked Size

18.2 kB

Total Files

11

Last publish

Collaborators

  • merencia