HomeSolus

Update python-dateutil to 2.7.0

Authored by EP01 on Mar 13 2018, 10:32 PM.

Description

Update python-dateutil to 2.7.0

Summary: Release notes available here.

Test Plan:
Executed the demo code below, and also tested with matplotlib, calibre, python-pandas, and python-jupyter_client.

In [1]: >>> from dateutil.relativedelta import *
   ...: >>> from dateutil.easter import *
   ...: >>> from dateutil.rrule import *
   ...: >>> from dateutil.parser import *
   ...: >>> from datetime import *
   ...: >>> now = parse("Sat Oct 11 17:13:46 UTC 2003")
   ...: >>> today = now.date()
   ...: >>> year = rrule(YEARLY,dtstart=now,bymonth=8,bymonthday=13,byweekday=FR)[0].year
   ...: >>> rdelta = relativedelta(easter(year), today)
   ...: >>> print("Today is: %s" % today)
   ...:
Today is: 2003-10-11

In [2]: >>> print("Year with next Aug 13th on a Friday is: %s" % year)
Year with next Aug 13th on a Friday is: 2004

In [3]: print("How far is the Easter of that year: %s" % rdelta)
How far is the Easter of that year: relativedelta(months=+6)

In [4]: print("And the Easter of that year is: %s" % (today+rdelta))
And the Easter of that year is: 2004-04-11

Reviewers: Triage Team, joebonrichie

Reviewed By: joebonrichie

Differential Revision: https://dev.solus-project.com/D2508

Details

Committed
joebonrichieMar 13 2018, 10:33 PM
Pushed
joebonrichieMar 13 2018, 10:33 PM
Reviewer
joebonrichie
Differential Revision
D2508: Update python-dateutil to 2.7.0
Parents
R2572:b1dd540a2015: Rebuild for python 3.6
Branches
Unknown
Tags
Unknown
References
tag: python-dateutil-2.7.0-8