https://github.com/bcherny/node-timezone
Get server timezone
https://github.com/bcherny/node-timezone
Last synced: about 1 month ago
JSON representation
Get server timezone
- Host: GitHub
- URL: https://github.com/bcherny/node-timezone
- Owner: bcherny
- License: mit
- Created: 2016-09-29T17:14:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T02:11:22.000Z (over 8 years ago)
- Last Synced: 2025-08-09T12:26:29.334Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# node-timezone [![Build Status][build]](https://circleci.com/gh/bcherny/node-timezone) [![npm]](https://www.npmjs.com/package/node-timezone) [![mit]](https://opensource.org/licenses/MIT)
[build]: https://img.shields.io/circleci/project/bcherny/node-timezone.svg?branch=master&style=flat-square
[npm]: https://img.shields.io/npm/v/node-timezone.svg?style=flat-square
[mit]: https://img.shields.io/npm/l/node-timezone.svg?style=flat-square> Get the server's timezone
## Install
```sh
npm install --save node-timezone
```## Usage
```js
var getTimezone = require('node-timezone').getTimezone
console.log(getTimezone()) // "America/Los_Angeles"
```## Tests
```sh
npm test
```Tested on OSX and Ubuntu.
TODO: Test on Windows.