"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.
alias mdate="sdate -e 2020-03"
My Python version still works, too: https://gist.github.com/amysoxcolo/d21efdc8dfb7aea00d8c31e746f6db29
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.
Ken.
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.
I just saw this alternate counter posted elsewhere, did they maybe miss a leap day?
Covid Standard Time
I don't know how they are wrong but they are wrong.
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.
In Debian, "sdate --covid 19" also works.
sdate being Endless September.