@core_helper
def time_ago_from_timestamp(timestamp):
 datetime_ = _datestamp_to_datetime(timestamp)
 if (not datetime_):
  return _('Unknown')
 return formatters.localised_nice_date(datetime_, show_date=False)

@ core_helper def time_ago_from_timestamp ( timestamp ) : datetime_ = _datestamp_to_datetime ( timestamp ) if ( not datetime_ ) : return _ ( 'Unknown' ) return formatters . localised_nice_date ( datetime_ , show_date = False )
returns a string like 5 months ago for a datetime relative to now .