I am receiving twitter messages that are sent at a certain date in the following format from twitter:
Tue Mar 29 08:11:25 +0000 2011
I want
To get datetime with timezone you can simple use datetime.strptime as follow:
from datetime import datetime s = 'Wed Jun 05 05:34:02 +0000 2019' created_at = datetime.strptime(s, '%a %b %d %H:%M:%S %z %Y') print(created_at) #2019-06-05 05:34:02+00:00