Skip to content

Instantly share code, notes, and snippets.

@dmiro
Created December 13, 2013 17:30
Show Gist options
  • Select an option

  • Save dmiro/7947948 to your computer and use it in GitHub Desktop.

Select an option

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
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