I need to parse polish date from string like this:
locale.setlocale(locale.LC_TIME, 'pl_PL.utf8')
print(time.strptime("27 luty 13:00:00", '%d %B %H:%M:%S'))
Actually above works fine, but the polish language dates are not as trivial as english one. The valid date in polish language is this:
27 lutego 13:00:00
Unfortunately strptime fails printing:
ValueError: time data '27 lutego 13:00:00' does not match format '%d %B %H:%M:%S'
What's the fool-proof solution for parsing dates from different locales?