Microseconds

Asked by Roberto R

Hi,

Not sure if this was changed in trunk...and I'm not very familiar with Python yet.

Anyway, I had an issue with editing blog posts due to microseconds (Python 2.6 on OS X Snow Leopard). I added the microsecond format to functions.py get_datetime

return datetime.datetime.strptime(time_string, '%Y-%m-%d %H:%M:%S.%f')

Question information

Language:
English Edit question
Status:
Answered
For:
GABlog Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joel Goguen (jgoguen) said :
#1

Hi Roberto,

Thanks for taking a look at this. This has been dealt with in trunk, although in a different way from your solution. I decided instead to remove the microseconds before processing the time stamp (using time_string.split(".")[0], where time_string is the string passed in from the date/time field from the post form) since the microseconds aren't really relevant.

Thanks again for taking a look at this and please feel free to submit any other questions you have or bug reports you find.

Can you help with this problem?

Provide an answer of your own, or ask Roberto R for more information if necessary.

To post a message you must log in.