tdays

2.0.1 • Public • Published

t-days

get number of days of Trump presidency

about

📆 get "Trump day x"

source

function tDays () {
  var inauguration = new Date(2017, 0, 20)
  var now = new Date()
  return Math.floor((now - inauguration) / (1000 * 60 * 60 * 24)) + 1
}

Package Sidebar

Install

npm i tdays

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • johnelliott