🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

python-dateutil

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-dateutil - pypi Package Compare versions

Comparing version
2.5.1
to
2.5.2
+1
-1
dateutil/__init__.py
# -*- coding: utf-8 -*-
__version__ = "2.5.1"
__version__ = "2.5.2"

@@ -467,3 +467,6 @@ # -*- coding:iso-8859-1 -*-

# 99-01-01
year, month, day = self
if dayfirst:
year, day, month = self
else:
year, month, day = self
elif self[0] > 12 or (dayfirst and self[1] <= 12):

@@ -470,0 +473,0 @@ # 13-01-01

@@ -780,1 +780,38 @@ # -*- coding: utf-8 -*-

def testNoYearFirstNoDayFirst(self):
dtstr = '090107'
# Should be MMDDYY
self.assertEqual(parse(dtstr),
datetime(2007, 9, 1))
self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=False),
datetime(2007, 9, 1))
def testYearFirst(self):
dtstr = '090107'
# Should be MMDDYY
self.assertEqual(parse(dtstr, yearfirst=True),
datetime(2009, 1, 7))
self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=False),
datetime(2009, 1, 7))
def testDayFirst(self):
dtstr = '090107'
# Should be DDMMYY
self.assertEqual(parse(dtstr, dayfirst=True),
datetime(2007, 1, 9))
self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=True),
datetime(2007, 1, 9))
def testDayFirstYearFirst(self):
dtstr = '090107'
# Should be YYDDMM
self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=True),
datetime(2009, 7, 1))
+6
-0

@@ -0,1 +1,7 @@

Version 2.5.2
-------------
- Updated zoneinfo to 2016c
- Fixed parser bug where yearfirst and dayfirst parameters were not being
respected when no separator was present. (gh issue #81 and #217, pr #229)
Version 2.5.1

@@ -2,0 +8,0 @@ -------------

Metadata-Version: 1.1
Name: python-dateutil
Version: 2.5.1
Version: 2.5.2
Summary: Extensions to the standard Python datetime module

@@ -5,0 +5,0 @@ Home-page: https://dateutil.readthedocs.org

Metadata-Version: 1.1
Name: python-dateutil
Version: 2.5.1
Version: 2.5.2
Summary: Extensions to the standard Python datetime module

@@ -5,0 +5,0 @@ Home-page: https://dateutil.readthedocs.org

@@ -5,5 +5,5 @@ [bdist_wheel]

[egg_info]
tag_build =
tag_date = 0
tag_build =
tag_svn_revision = 0

@@ -7,5 +7,5 @@ {

],
"tzdata_file": "tzdata2016b.tar.gz",
"tzdata_file_sha512": "6d30215ba3289a5b85a632d635b76a54c3c08d97e426d6bd89f83c4efd252e43959593b21cca9d2b185f3845358908946cc308365accbee94f126ad3057cf838",
"tzversion": "2016b",
"tzdata_file": "tzdata2016c.tar.gz",
"tzdata_file_sha512": "03eab77c8b3176da1dd17d1d9062b151036b01d224f1e4b60f34a2db6899150431f34f4d9f39652648aae3a55326fd6f85d6deefe3f27b36eaed9ef39ed3f53c",
"tzversion": "2016c",
"zonegroups": [

@@ -12,0 +12,0 @@ "africa",

Sorry, the diff of this file is not supported yet