Stylusstylus
Apr 18, 2026, 3:04 PMboy I wonder when I wrote this code. The only surprise is, the context is code with python2isms... was I still writing python2 code in covidtimes?
def near_future_date2():
then = randint(int(time.time()), 2l<<31)
then = time.localtime(then)
then_d = datetime.date(then.tm_year, then.tm_mon, then.tm_mday)
day = (then_d - datetime.date(2020, 3, 1)).days + 1
wday = time.strftime("%a", then)
hms = time.strftime("%H:%M:%S", then)
tz = time.strftime('%Z', then)
return "%s Mar %s %s %s 2020" % (wday, day, hms, tz)