By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,729 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,729 IT Pros & Developers. It's quick & easy.

2014-02-11 09:00:00 PST' does not match format '%Y-%m-%d %H:%M:%S %Z'

P: 1
Expand|Select|Wrap|Line Numbers
  1. for choice in current_xml.xpath("//choice"):
  2.       " "+choice.get("startTime")+" "+
  3.                     current_time_in_user_timezone.strftime("%Z"))
  4.                 start_time=datetime.strptime(date_string+" "+choice.get("startTime")+" "+
  5.                     current_time_in_user_timezone.strftime("%Z"),"%Y-%m-%d %H:%M:%S %Z")
  6.                 end_time=datetime.strptime(date_string+" "+choice.get("endTime")+" "+
  7.                     current_time_in_user_timezone.strftime("%Z"),"%Y-%m-%d %H:%M:%S %Z")
  8.       "start time is "+str(start_time))
  9.       "end time is "+str(end_time))

In this program i am get this error that does not match format '%Y-%m-%d %H:%M:%S %Z'

Please help me if anyone knows
Feb 11 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.