Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

timeSince function to format a JavaScript Date as a string stating the time elapsed e.g "4 mins ago"  #215

@sumdook

Description

@sumdook

Hi Kent!

I found your Youtube live stream "Contributing to Open Source on GitHub for beginners". It was very inspiring and gave me a whole new perspective.

I'd like to add a feature to format JS Date to a string based on how much time has elapsed, e.g "5 hours ago" like Instagram shows time.
It's inspired by this answer on StackOverflow.

https://stackoverflow.com/a/3177838/8301717

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions