Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 873 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 873 Bytes

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.