convert all date related values into datetime object
Bug #309950 reported by
Markus Korn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Fix Released
|
High
|
Unassigned |
Bug Description
The lauchpad API exposes some date related values like bug.date_created, bug.last_message etc.
All this values are ISO 1601 formated time strings like:
"2008-
This strings are of no use for scripts using launchpadlib, they have to convert this values into datetime (or similar) objects. It would be nice if launchpad could automatically return datetime objects in this cases, or provide a generic function to convert this strings into datetime objects.
Markus
Changed in launchpadlib: | |
importance: | Undecided → High |
status: | New → Triaged |
To post a comment you must log in.
As a workaround I'm using the parse_time() function from the attached module to convert the time strings provided by the API into datetime objects. I think it makes sense to use this function for simplejson to create datetime objects when running simplejson.loads()
Markus