Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie1santana committed Jul 18, 2024
1 parent 720b5c9 commit 2d32545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ alt="NPM Version"></a> <a href="https://github.com/jackie1santana/showTimeAgoUti
---

### What is Show Time Ago?
> Show Time Ago is a utility that displays how long ago a given date was. Simply provide your ISO date: `showTimeAgo("2024-07-17T17:12:00.000Z")`, and this utility will dynamically update the time with the suffix 'ago'. For example: `2 minutes ago, 1 hour ago, 2 days ago, 1 month ago, 1 year ago`.
> Show Time Ago is a utility that displays how long ago a given date was. Simply provide your ISO date: `showTimeAgo("2024-07-17T17:12:00.000Z")`, and this utility will dynamically update the time with the suffix 'ago'. For example: `now, 2 seconds ago, 2 minutes ago, 1 hour ago, 2 days ago, 1 month ago, 1 year ago`.
##### List of time suffixes:
- minutes, hours, days, weeks, months, years 'ago..'
- now, seconds, minutes, hours, days, weeks, months, years 'ago..'

##### Default: showTimeago updates on page reload
_dynamically update time without page reload? code examples shown below_
Expand Down

0 comments on commit 2d32545

Please sign in to comment.