I’m trying to convert
[16/Jan/2010:18:11:06 +0100] (common log format)
to a timestamp. How can I use strptime to convert this?
time zone can be different from +0100
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Reference: http://docs.python.org/library/time.html#time.strptime
Python’s timezone support is problematic and platform dependant.
See this post (see also its first part).