replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
46
node_modules/time-zone/readme.md
generated
vendored
Normal file
46
node_modules/time-zone/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# time-zone [](https://travis-ci.org/sindresorhus/time-zone)
|
||||
|
||||
> Pretty [time zone](https://en.wikipedia.org/wiki/Time_zone): `+2` or `-9:30`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save time-zone
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const timeZone = require('time-zone');
|
||||
|
||||
// current time zone (in Norway)
|
||||
timeZone();
|
||||
//=> '+2'
|
||||
|
||||
// time zone in February (in Norway)
|
||||
timeZone(new Date(2016, 1, 1));
|
||||
//=> '+1'
|
||||
|
||||
// current time zone (in French Polynesia)
|
||||
timeZone();
|
||||
//=> '-9:30'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### timeZone([date])
|
||||
|
||||
#### date
|
||||
|
||||
Type: `Date`<br>
|
||||
Default: `new Date()`
|
||||
|
||||
Custom date.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
Loading…
Add table
Add a link
Reference in a new issue