def test_unified_dates(self): self.assertEqual(unified_strdate("December 21, 2010"), "20101221") self.assertEqual(unified_strdate("8/7/2009"), "20090708") self.assertEqual(unified_strdate("Dec 14, 2012"), "20121214") self.assertEqual(unified_strdate("2012/10/11 01:56:38 +0000"), "20121011") self.assertEqual(unified_strdate("1968 12 10"), "19681210") self.assertEqual(unified_strdate("1968-12-10"), "19681210") self.assertEqual(unified_strdate("28/01/2014 21:00:00 +0100"), "20140128") self.assertEqual(unified_strdate("11/26/2014 11:30:00 AM PST", day_first=False), "20141126") self.assertEqual(unified_strdate("2/2/2015 6:47:40 PM", day_first=False), "20150202")
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011') self.assertEqual(unified_strdate('1968 12 10'), '19681210') self.assertEqual(unified_strdate('1968-12-10'), '19681210') self.assertEqual(unified_strdate('28/01/2014 21:00:00 +0100'), '20140128') self.assertEqual( unified_strdate('11/26/2014 11:30:00 AM PST', day_first=False), '20141126') self.assertEqual( unified_strdate('2/2/2015 6:47:40 PM', day_first=False), '20150202') self.assertEqual(unified_strdate('25-09-2014'), '20140925')
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011') self.assertEqual(unified_strdate('1968-12-10'), '19681210') self.assertEqual(unified_strdate('28/01/2014 21:00:00 +0100'), '20140128')
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011') self.assertEqual(unified_strdate('1968 12 10'), '19681210') self.assertEqual(unified_strdate('1968-12-10'), '19681210') self.assertEqual(unified_strdate('28/01/2014 21:00:00 +0100'), '20140128') self.assertEqual( unified_strdate('11/26/2014 11:30:00 AM PST', day_first=False), '20141126') self.assertEqual( unified_strdate('2/2/2015 6:47:40 PM', day_first=False), '20150202') self.assertEqual(unified_strdate('Feb 14th 2016 5:45PM'), '20160214') self.assertEqual(unified_strdate('25-09-2014'), '20140925') self.assertEqual(unified_strdate('27.02.2016 17:30'), '20160227') self.assertEqual(unified_strdate('UNKNOWN DATE FORMAT'), None) self.assertEqual(unified_strdate('Feb 7, 2016 at 6:35 pm'), '20160207') self.assertEqual(unified_strdate('July 15th, 2013'), '20130715') self.assertEqual(unified_strdate('September 1st, 2013'), '20130901') self.assertEqual(unified_strdate('Sep 2nd, 2013'), '20130902')
def test_unified_dates(self): self.assertEqual(unified_strdate("December 21, 2010"), "20101221") self.assertEqual(unified_strdate("8/7/2009"), "20090708") self.assertEqual(unified_strdate("Dec 14, 2012"), "20121214") self.assertEqual(unified_strdate("2012/10/11 01:56:38 +0000"), "20121011")
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011') self.assertEqual(unified_strdate('1968 12 10'), '19681210') self.assertEqual(unified_strdate('1968-12-10'), '19681210') self.assertEqual(unified_strdate('28/01/2014 21:00:00 +0100'), '20140128') self.assertEqual( unified_strdate('11/26/2014 11:30:00 AM PST', day_first=False), '20141126') self.assertEqual( unified_strdate('2/2/2015 6:47:40 PM', day_first=False), '20150202') self.assertEqual(unified_strdate('Feb 14th 2016 5:45PM'), '20160214') self.assertEqual(unified_strdate('25-09-2014'), '20140925') self.assertEqual(unified_strdate('27.02.2016 17:30'), '20160227') self.assertEqual(unified_strdate('UNKNOWN DATE FORMAT'), None)
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011')
def test_unified_dates(self): self.assertEqual(unified_strdate("December 21, 2010"), "20101221") self.assertEqual(unified_strdate("8/7/2009"), "20090708") self.assertEqual(unified_strdate("Dec 14, 2012"), "20121214") self.assertEqual(unified_strdate("2012/10/11 01:56:38 +0000"), "20121011") self.assertEqual(unified_strdate("1968 12 10"), "19681210") self.assertEqual(unified_strdate("1968-12-10"), "19681210") self.assertEqual(unified_strdate("28/01/2014 21:00:00 +0100"), "20140128") self.assertEqual(unified_strdate("11/26/2014 11:30:00 AM PST", day_first=False), "20141126") self.assertEqual(unified_strdate("2/2/2015 6:47:40 PM", day_first=False), "20150202") self.assertEqual(unified_strdate("Feb 14th 2016 5:45PM"), "20160214") self.assertEqual(unified_strdate("25-09-2014"), "20140925") self.assertEqual(unified_strdate("UNKNOWN DATE FORMAT"), None)
def test_unified_dates(self): self.assertEqual(unified_strdate('December 21, 2010'), '20101221') self.assertEqual(unified_strdate('8/7/2009'), '20090708') self.assertEqual(unified_strdate('Dec 14, 2012'), '20121214') self.assertEqual(unified_strdate('2012/10/11 01:56:38 +0000'), '20121011') self.assertEqual(unified_strdate('1968-12-10'), '19681210')