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
    }

    Install

    npm i tdays

    DownloadsWeekly Downloads

    0

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar