Converts the input into a date in french
Project description
frdate
Finds a date object in a string input, and returns it in french.
Installation :
pip install frdate
Examples:
>>> from frdate import conv
>>> conv('14071789')
"14 juillet 1789"
>>> conv('17890714',to_date=True)
"datetime.date(1789, 7, 14)"
>>> conv('1789-07-14',litteral=True)
"quatorze juillet mille sept cent quatre-vingt-neuf"
Supported formats :
The input can be a datetime.date or datetime.datetime object, or any string representing a date:
- YYYYMMDD
- DDMMYYYY
- YYYY-MM-DD
- YYYY/MM/DD
- YYYY MM DD
- DD MM YYYY
- DD/MM/YYYY
- DD-MM-YYYY
- ...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
frdate-0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
frdate-0.2-py3-none-any.whl
(4.0 kB
view hashes)