for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Date and date-time related filters."""
from dateutil.parser import parse as dtparse
def str2dt(timestr):
"""Convert a string date to a real date.
Args:
timestr (str) - the datetime as a raw string.
Returns:
dateutil.parser.parse - the parsed datetime object.
"""
return dtparse(timestr)