I can't parse a date written in italian:
datetime.strptime("sab 21 mar 2020, 13:04", "%a %d %b %Y, %H:%M")
I got this error:
ValueError: time data 'sab 21 mar 2020, 13:04' does not match format '%a %d %b %Y, %H:%M'
If I try with:
datetime.strptime("sat 21 mar 2020, 13:04", "%a %d %b %Y, %H:%M")
It's ok, so how can parse the date in the right local time? In Java, I did so:
SimpleDateFormat parser = new SimpleDateFormat("EEE dd MMM yyyy, HH:mm", Locale.ITALIAN);
with this line I was able to parse date correcly, does exist something similar in python?