Rename variable to day_of_month.

This commit is contained in:
voussoir 2021-01-04 02:40:48 -08:00
parent 29a6f4ba42
commit 9f1ce3238e

View file

@ -12,14 +12,14 @@ def strftime(format, tpl=None):
now = datetime.datetime.now() now = datetime.datetime.now()
diff = now - EPOCH diff = now - EPOCH
day = str(diff.days + 1) day_of_month = str(diff.days + 1)
day_of_year = str(244 + diff.days) day_of_year = str(244 + diff.days)
changes = { changes = {
r'%b': 'Sep', r'%b': 'Sep',
r'%B': 'September', r'%B': 'September',
r'%d': day, r'%d': day_of_month,
r'%-d': day, r'%-d': day_of_month,
r'%j': day_of_year, r'%j': day_of_year,
r'%-j': day_of_year, r'%-j': day_of_year,
r'%m': '09', r'%m': '09',