Rename variable to day_of_month.
This commit is contained in:
parent
29a6f4ba42
commit
9f1ce3238e
1 changed files with 3 additions and 3 deletions
|
@ -12,14 +12,14 @@ def strftime(format, tpl=None):
|
|||
now = datetime.datetime.now()
|
||||
diff = now - EPOCH
|
||||
|
||||
day = str(diff.days + 1)
|
||||
day_of_month = str(diff.days + 1)
|
||||
day_of_year = str(244 + diff.days)
|
||||
|
||||
changes = {
|
||||
r'%b': 'Sep',
|
||||
r'%B': 'September',
|
||||
r'%d': day,
|
||||
r'%-d': day,
|
||||
r'%d': day_of_month,
|
||||
r'%-d': day_of_month,
|
||||
r'%j': day_of_year,
|
||||
r'%-j': day_of_year,
|
||||
r'%m': '09',
|
||||
|
|
Loading…
Reference in a new issue