Closed medallyon closed 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
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