def parse_human_timedelta(s):
 cal = parsedatetime.Calendar()
 dttm = dttm_from_timtuple(datetime.now().timetuple())
 d = cal.parse(s, dttm)[0]
 d = datetime(d.tm_year, d.tm_mon, d.tm_mday, d.tm_hour, d.tm_min, d.tm_sec)
 return (d - dttm)

def parse_human_timedelta ( s ) : cal = parsedatetime . Calendar ( ) dttm = dttm_from_timtuple ( datetime . now ( ) . timetuple ( ) ) d = cal . parse ( s , dttm ) [ 0 ] d = datetime ( d . tm_year , d . tm_mon , d . tm_mday , d . tm_hour , d . tm_min , d . tm_sec ) return ( d - dttm )
returns datetime .