summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/unbirthday.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/scripts/unbirthday.py')
-rwxr-xr-xDemo/scripts/unbirthday.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/scripts/unbirthday.py b/Demo/scripts/unbirthday.py
index 2d0b8e5..8ed9084 100755
--- a/Demo/scripts/unbirthday.py
+++ b/Demo/scripts/unbirthday.py
@@ -92,9 +92,9 @@ def mkdate((year, month, day)):
# even though that day never actually existed and the calendar
# was different then...
days = year*365 # years, roughly
- days = days + (year+3)/4 # plus leap years, roughly
- days = days - (year+99)/100 # minus non-leap years every century
- days = days + (year+399)/400 # plus leap years every 4 centirues
+ days = days + (year+3)//4 # plus leap years, roughly
+ days = days - (year+99)//100 # minus non-leap years every century
+ days = days + (year+399)//400 # plus leap years every 4 centirues
for i in range(1, month):
if i == 2 and calendar.isleap(year):
days = days + 29