@core_helper
@maintain.deprecated('h.time_ago_in_words_from_str is deprecated in 2.2 and will be removed.  Please use h.time_ago_from_timestamp instead')
def time_ago_in_words_from_str(date_str, granularity='month'):
 if date_str:
  return date.time_ago_in_words(date_str_to_datetime(date_str), granularity=granularity)
 else:
  return _('Unknown')

@ core_helper @ maintain . deprecated ( 'h.time_ago_in_words_from_str is deprecated in 2.2 and will be removed.  Please use h.time_ago_from_timestamp instead' ) def time_ago_in_words_from_str ( date_str , granularity = 'month' ) : if date_str : return date . time_ago_in_words ( date_str_to_datetime ( date_str ) , granularity = granularity ) else : return _ ( 'Unknown' )
deprecated in 2 .