parsedatetime
parsedatetime copied to clipboard
Bug: If *parse()* not found date returns now datetime
subj,
For example:
this code works only with Python 3. Python2 returns datetime.datetime.now()
if sys.version_info >= (3, 0):
target = datetime.datetime(2006, 9, 25, 23, 5).timetuple()
self.assertExpectedResult(self.cal.parse('25 сентября 2006 23:05'), (target, 3))