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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    14
  • 0.0.1
    0

Package Sidebar

Install

npm i isdst

Weekly Downloads

14

Version

1.0.0

License

MIT

Last publish

Collaborators

  • smallsharptools