blob: f5a8e6f7293be33523b5c8448254ce85abec6e41 [file] [log] [blame]
niemeyerdebf3cd2005-02-23 18:33:30 +00001from dateutil.relativedelta import *
2from dateutil.easter import *
3from dateutil.rrule import *
4from dateutil.parser import *
5from datetime import *
6import commands
7import os
8now = parse(commands.getoutput("date"))
9today = now.date()
10year = rrule(YEARLY,bymonth=8,bymonthday=13,byweekday=FR)[0].year
11rdelta = relativedelta(easter(year), today)
12print "Today is:", today
13print "Year with next Aug 13th on a Friday is:", year
14print "How far is the Easter of that year:", rdelta
15print "And the Easter of that year is:", today+rdelta