Reputation: 3056
I need to parse the following time:
mytime = "11:32 PM LT"
datetime.strptime(mytime, '%H:%M %p LT')
But sometimes "11:32 PM LT" is a GMT time like for example "18:32 PM GMT". How do I parse that correctly so both time types are taken into consideration?
Upvotes: 0
Views: 38