Lines Matching refs:year
14 year = int(sys.argv[1])
16 year = int(raw_input('In which year were you born? '))
17 if 0 <= year < 100:
18 print "I'll assume that by", year,
19 year = year + 1900
20 print 'you mean', year, 'and not the early Christian era'
21 elif not (1850 <= year <= time.localtime()[0]):
22 print "It's hard to believe you were born in", year
37 if month == 2 and calendar.isleap(year):
45 bdaytuple = (year, month, day)
65 for y in range(year, todaytuple[0] + 1):
78 def format((year, month, day)): argument
79 return '%d %s %d' % (day, calendar.month_name[month], year)
87 def mkdate((year, month, day)): argument
91 days = year*365 # years, roughly
92 days = days + (year+3)//4 # plus leap years, roughly
93 days = days - (year+99)//100 # minus non-leap years every century
94 days = days + (year+399)//400 # plus leap years every 4 centirues
96 if i == 2 and calendar.isleap(year):