ENH: Infer datetime format string

Bug #1614518 reported by kernc_
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dateutil
New
Undecided
Unassigned

Bug Description

This is an enhancement request.

Provide an interface to return a datetime format string one can use with strptime()/strftime() (e.g. "%Y-%m-%d") that the dateutil.parser.parse() uses when parsing a datetime string.

E.g.

>>> dateutil.parser.parse_format('1999-12-09')
'%Y-%m-%d'
>>> dateutil.parser.parse_format('three days ago')
None

kernc_ (kernc)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.