I am required to extract the time of the day from the datetime.datetime object returned by the created_at attribute. But I do not understand how to do that. This is my code
It's easier to use the timestamp for this things since Tweepy gets both
import datetime print(datetime.datetime.fromtimestamp(int(t1)).strftime('%H:%M'))