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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3,087
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3,087
  • 0.0.1
    53,625

Package Sidebar

Install

npm i tz-offset

Weekly Downloads

56,712

Version

0.0.2

License

ISC

Unpacked Size

18.2 kB

Total Files

11

Last publish

Collaborators

  • merencia