hustcc / timeago

:hourglass: Simple library used to format datetime with `*** time ago` statement. eg: "3 hours ago".
http://timeago.org
MIT License
224 stars 37 forks source link

Remove "in X hours ago" ?? #33

Closed Ovicron closed 4 years ago

Ovicron commented 4 years ago

Hi, How do I remove "IN X HOURS AGO", I only want it to show "X hours/days/minutes ago" and not "in X hours ago" It does work, but on some instances it shows "3 hours ago" and in some other instances it shows "in 3 hours"... Using Python..

`

    now = datetime.datetime.now() + datetime.timedelta(seconds=60 * 3.4)

    date = datetime.datetime.now()

    time_ago = (timeago.format(streamer_channel_info['last_seen']))`
yangze01 commented 3 years ago

I encounter the same situation. I want to get "xxx time ago", but sometimes I get "in xxx time". how can I fix it to "xxx time ago"