parsing - Parse French date in python -
Can someone please tell me how can I parse French date in Python? Sorry, if the question is duplicate, but I could not find any.
Here I have tried to use the I The idea of parsing several dates in the fly is parsing the format of your string in advance without preferring the address: To translate Persian words, I can get it by using the Perseidum Library and some regular expressions: Maybe I should make it normal in all French months? can parse dates in question: It translates the dates of English using dates and passes the date string. dateutil parser:
Edit: Add some references:
parse_dt (u'Aujourd''hui ', fuzzy = tru) pars_date (u 'Hair, fuzzy = true)
other library Edit using:
Import = Personate Time Calendar () Cal.Parse (Reefer Wiab ('Jual. *', 'Jul', '20 Joulet ')) ((2015, 7, 20, 10, 25, 47, 4, 283, 1), 1)
#! / Usr / bin / env python # - * - coding: UTF-8 - * - Import DatePaster # $ pip for installation dateparser date_string in [u "ojdhui", "3 juliet", u "4 ao tt", u "Higher"]: Print (Datachers. PRSE (date_string) .date ())
Output
2015-09-09 2015-07-03 2015-08-04 2015 -09-08
Comments
Post a Comment