https://bugzilla.novell.com/show_bug.cgi?id=772035 https://bugzilla.novell.com/show_bug.cgi?id=772035#c1 Sascha Peilicke <speilicke@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |INVALID --- Comment #1 from Sascha Peilicke <speilicke@suse.com> 2012-07-18 12:31:39 UTC --- Doing the "Quick Example" from http://labix.org/python-dateutil#head-b57873b28af6ab8b1c4ae48d522ce0c691abbd... on Factory: saschpe@bort:~% rpm -qi python-dateutil Name : python-dateutil Version : 2.1 Release : 3.3 ... saschpe@bort:~% python Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.
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 Today is: 2012-07-18 print "Year with next Aug 13th on a Friday is:", year Year with next Aug 13th on a Friday is: 2021 print "How far is the Easter of that year:", rdelta How far is the Easter of that year: relativedelta(years=+8, months=+8, days=+17) print "And the Easter of that year is:", today+rdelta And the Easter of that year is: 2021-04-04
Seems like it still works with Python-2.7.3, thus I think there's no issue here ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.