python-dateutil
Advanced tools
| # -*- coding: utf-8 -*- | ||
| __version__ = "2.5.2" | ||
| __version__ = "2.5.3" |
@@ -467,3 +467,3 @@ # -*- coding:iso-8859-1 -*- | ||
| # 99-01-01 | ||
| if dayfirst: | ||
| if dayfirst and self[2] <= 12: | ||
| year, day, month = self | ||
@@ -470,0 +470,0 @@ else: |
@@ -816,2 +816,16 @@ # -*- coding: utf-8 -*- | ||
| def testUnambiguousYearFirst(self): | ||
| dtstr = '2015 09 25' | ||
| self.assertEqual(parse(dtstr, yearfirst=True), | ||
| datetime(2015, 9, 25)) | ||
| def testUnambiguousDayFirst(self): | ||
| dtstr = '2015 09 25' | ||
| self.assertEqual(parse(dtstr, dayfirst=True), | ||
| datetime(2015, 9, 25)) | ||
| def testUnambiguousDayFirstYearFirst(self): | ||
| dtstr = '2015 09 25' | ||
| self.assertEqual(parse(dtstr, dayfirst=True, yearfirst=True), | ||
| datetime(2015, 9, 25)) | ||
@@ -9,3 +9,2 @@ # -*- coding: utf-8 -*- | ||
| from subprocess import check_call | ||
| from tarfile import TarFile | ||
@@ -12,0 +11,0 @@ from pkgutil import get_data |
+10
-0
@@ -0,1 +1,11 @@ | ||
| Version 2.5.3 | ||
| ------------- | ||
| - Updated zoneinfo to 2016d | ||
| - Fixed parser bug where unambiguous datetimes fail to parse when dayfirst is | ||
| set to true. (gh issue #233, pr #234) | ||
| - Bug in zoneinfo file on platforms such as Google App Engine which do not | ||
| do not allow importing of subprocess.check_call was reported and fixed by | ||
| @savraj (gh issue #239, gh pr #240) | ||
| - Fixed incorrect version in documentation (gh issue #235, pr #243) | ||
| Version 2.5.2 | ||
@@ -2,0 +12,0 @@ ------------- |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: python-dateutil | ||
| Version: 2.5.2 | ||
| Version: 2.5.3 | ||
| 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.2 | ||
| Version: 2.5.3 | ||
| Summary: Extensions to the standard Python datetime module | ||
@@ -5,0 +5,0 @@ Home-page: https://dateutil.readthedocs.org |
+2
-2
@@ -5,5 +5,5 @@ [bdist_wheel] | ||
| [egg_info] | ||
| tag_svn_revision = 0 | ||
| tag_date = 0 | ||
| tag_build = | ||
| tag_date = 0 | ||
| tag_svn_revision = 0 | ||
@@ -7,5 +7,5 @@ { | ||
| ], | ||
| "tzdata_file": "tzdata2016c.tar.gz", | ||
| "tzdata_file_sha512": "03eab77c8b3176da1dd17d1d9062b151036b01d224f1e4b60f34a2db6899150431f34f4d9f39652648aae3a55326fd6f85d6deefe3f27b36eaed9ef39ed3f53c", | ||
| "tzversion": "2016c", | ||
| "tzdata_file": "tzdata2016d.tar.gz", | ||
| "tzdata_file_sha512": "f1beb1793c4c7d18f2dadaf4a928b1476f66b400bda0c87b06155c0dd1c4b4a26bb2f37dc17a3676a2bbe9c1e71a5d8b27a171c797a86464b0bc0d13abfb2f99", | ||
| "tzversion": "2016d", | ||
| "zonegroups": [ | ||
@@ -12,0 +12,0 @@ "africa", |
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
670621
0.12%10323
0.11%