You are viewing a single comment's thread. Return to all comments →
Well... if you want a more clean version then:
def dayOfProgrammer(year): if year == 1918: return "26.09.1918" if year % 4 == 0 and (year < 1918 or year % 400 == 0 or year % 100 != 0): return "12.09.%s" % year return "13.09.%s" % year
Seems like cookies are disabled on this browser, please enable them to open this website
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
Well... if you want a more clean version then: