https://github.com/node-cron/tz-offset
A lib to work with JavaScript timezone offset
https://github.com/node-cron/tz-offset
Last synced: 11 months ago
JSON representation
A lib to work with JavaScript timezone offset
- Host: GitHub
- URL: https://github.com/node-cron/tz-offset
- Owner: node-cron
- License: isc
- Created: 2018-09-06T11:26:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T16:10:13.000Z (over 3 years ago)
- Last Synced: 2025-04-02T08:51:14.419Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 13
- Watchers: 1
- Forks: 41
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tz-offset

[](https://github.com/node-cron/tz-offset/blob/master/LICENSE.md)
[](https://travis-ci.org/node-cron/tz-offset)
[](https://david-dm.org/node-cron/tz-offset)
[](https://david-dm.org/node-cron/tz-offset?type=dev)
A lib to work with JavaScript timezone offset
# Usage
```js
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.
```