Checks if local clocks are currently adjusted for daylight saving time. :sunny:
Install with yarn:
$ yarn add is-dst
Or with npm:
$ npm install --save is-dst
const isDST = require('is-dst') /* * Examples invoked on February 5th, 2017 in US/Eastern timezone */ isDST(new Date('January 1, 2017')) //=> false isDST(new Date('July 1, 2017')) //=> true isDST() //=> false
The date to check for DST.
Returns false for time zones that do not observe DST.
Assumes that January 1st and July 1st will never both be DST or not DST in a given year. This is currently true for all time zones that observe DST.
MIT © Brandon Smith
Is it Daylight Saving Time?
The npm package is-dst receives a total of 352 weekly downloads. As such, is-dst popularity was classified as not popular.
We found that is-dst demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.