Je sais pas coder en python…
This commit is contained in:
parent
1bb4c8402b
commit
b2003525a7
1 changed files with 0 additions and 1 deletions
|
@ -14,7 +14,6 @@ def execute(macro, text):
|
||||||
year, month, day = text.split(",")
|
year, month, day = text.split(",")
|
||||||
y, m, d = int(year), int(month), int(day)
|
y, m, d = int(year), int(month), int(day)
|
||||||
now = datetime.datetime(*time.localtime()[:6])
|
now = datetime.datetime(*time.localtime()[:6])
|
||||||
birthdate = now
|
|
||||||
if m==2 and d==29:
|
if m==2 and d==29:
|
||||||
birthdate = datetime.datetime(now.year, 3, 01)
|
birthdate = datetime.datetime(now.year, 3, 01)
|
||||||
if now.month==2 and now.day==29:
|
if now.month==2 and now.day==29:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue