Thursday, 5 September 2013

How can i change timezone data Python

How can i change timezone data Python

istanbul = timezone('Europe/Istanbul')
created_at = "Wed Aug 29 17:12:58 +0000 2012"
dtt = created_at.replace(tzinfo=istanbul)
xnxx = time.mktime(time.strptime(str(dtt),"%Y-%m-%d %H:%M:%S"))
Error : unconverted data remains: +01:57

No comments:

Post a Comment