Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [1]: import datetime
- In [2]: import locale
- In [3]: locale.setlocale(locale.LC_ALL,'fr_FR')
- Out[3]: 'fr_FR'
- In [4]: datetime.datetime(2015,7,1).strftime('%B')
- Out[4]: 'juillet'
- In [5]: locale.setlocale(locale.LC_ALL,'en_US')
- Out[5]: 'en_US'
- In [6]: datetime.datetime(2015,7,1).strftime('%B')
- Out[6]: 'July'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement