Skip to content

Commit ff0be93

Browse files
Updated readme
1 parent 98fe55f commit ff0be93

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ console.log(timelydiff(timestamp2)); // "4 months ago"
3535

3636
> To generate a timestamp at the current moment and store it for later use, you can use the built-in JavaScript function Date.now(), which returns the number of milliseconds since January 1, 1970, 00:00:00 UTC (Unix timestamp).
3737
38-
<br>
3938

4039
Optionally, you can pass a second parameter to the function to specify the length of the output string. By default, the function will return a string in the format of x [unit] ago/in [x] [unit], but you can choose to return a shorter string by setting the length parameter to "short" or "shorter".
4140

@@ -47,7 +46,6 @@ console.log(timeDiffShort); // "4mo ago"
4746
//timelydiff(timestamp, "shorter") -> 4mo
4847
```
4948

50-
<br>
5149

5250
### API
5351
**`timelydiff(timestamp, length)`**

0 commit comments

Comments
 (0)