1.0.0 • Published 9 years ago

isdst v1.0.0

Weekly downloads
662
License
MIT
Repository
-
Last release
9 years ago

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)