Anons79 Mini Shell

Directory : /usr/share/doc/python-dateutil-1.5/
Upload File :
Current File : //usr/share/doc/python-dateutil-1.5/example.py

from dateutil.relativedelta import *
from dateutil.easter import *
from dateutil.rrule import *
from dateutil.parser import *
from datetime import *
import commands
import os
now = parse(commands.getoutput("date"))
today = now.date()
year = rrule(YEARLY,bymonth=8,bymonthday=13,byweekday=FR)[0].year
rdelta = relativedelta(easter(year), today)
print "Today is:", today
print "Year with next Aug 13th on a Friday is:", year
print "How far is the Easter of that year:", rdelta
print "And the Easter of that year is:", today+rdelta

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]