isdst

1.0.0 • Public • Published

isDST

Given a date value it will return a boolean value indicating Daylight Savings.

DST is observed in certain regions of this time zone between the 2nd Sunday in March and the 1st Sunday in November. Wikipedia

Usage

var isDST = require("isdst").isDST;
 
var now = new Date();
var dst = isDST(now);
 
console.log(dst ? "Daylight Savings Time" : "Standard Time");

License

MIT

Author

Brennan Stehling (@brennanmke, @smallsharptools)

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i isdst

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • smallsharptools