Created
December 13, 2013 17:30
-
-
Save dmiro/7947948 to your computer and use it in GitHub Desktop.
Extraer fecha de una cadena
Toma un bloque arbitrario del texto, buscar algo que se parece a una cadena de fecha y construye un objeto DateTime fuera de ella
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from dateutil.parser import parse | |
| parse('hola que tal 25 October 1990 ya esta', fuzzy=True) | |
| # datetime.datetime(1990, 10, 25, 0, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment