Skip to content

Commit

Permalink
added function to parse date from string in unknown format
Browse files Browse the repository at this point in the history
  • Loading branch information
acutesoftware committed Nov 19, 2017
1 parent 6047cd0 commit ba5f2f6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion aikif/toolbox/text_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,14 @@ def is_match(txt1, txt2):
else:
return False




def get_date_from_str(datestring):
"""
find a date from string
"""

import dateutil.parser
return dateutil.parser.parse(datestring)


0 comments on commit ba5f2f6

Please sign in to comment.