medallyon / grogsile.org-archive

The (old) Official Bot For ESO International
https://discordapp.com/invite/0jGipOeWW06jNmlL
Apache License 2.0
1 stars 0 forks source link

[Trello] Rework `utils.timeSince` to accept a Date object and work in reverse #86

Closed medallyon closed 6 years ago

medallyon commented 6 years ago

This should work by taking in an instance of the Date class and displaying the time that has passed since the passed-in date. If the date is in the future, simply inverse the calculated time and format it accordingly.

Link to Trello Card: https://trello.com/c/0pkyeSfD/3-rework-utilstimesince-to-accept-a-date-object-and-work-in-reverse