The date is now Friday, March 671st, 2020.

"Happy" "New" Year.

perl -e 'use Date::Parse; use POSIX; my @t = localtime; print strftime ("%a Mar ", @t) . int (1 + 0.5 + ((str2time (strftime ("%Y-%m-%d 3:00", @t)) - str2time ("2020-03-01 3:00")) /(60*60*24))) . strftime (" %X %Z 2020\n", @t);'

Fri Mar 671 13:41:08 PST 2020

Previously, previously, previously, previously, previously, previously, previously.

Tags: , , ,

9 Responses:

  1. Peter Huesken says:

  2. hudson says:

    alias mdate="sdate -e 2020-03"

    • k3ninho says:

      Neat, thank you. You might set BASEDATE with `LASTREALDATE = date(2020, 2, 29)` which allows 2020-03-01 to swallow the +1 you add at the end ... at the cost of admitting there were beforetimes.


      • Amy says:

        Except that I use BASEDATE to format part of the output, including the month name “Mar”, meaning that the code respects existing locale settings for formatting the month short name.

  3. xrayspx says:

    I just saw this alternate counter posted elsewhere, did they maybe miss a leap day?

    Covid Standard Time

    • jwz says:

      I don't know how they are wrong but they are wrong.

      • xrayspx says:

        Exactly, it didn't even occur to me that the last leap day was in 2020 just before time began. You've historically proven yourself a reliable stratum 0 time source, I mean I don't want to miss a car payment or anything here.

  4. twb says:

    In Debian, "sdate --covid 19" also works.
    sdate being Endless September.

  • Previously