At the moment we have toRelativeTime which produces a string like "in 2 minutes" or "2 minutes ago" from one timestamp.
In this PR I introduce diffTimestamps which produces a string like "2 minutes" from two time stamps.
Unfortunately I have had to write my own version of this as we are using an old version of Luxon. I'm not sure how much hassle it would be to upgrade Luxon.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
:heart: Thank you for your contribution!
Description
At the moment we have
toRelativeTime
which produces a string like "in 2 minutes" or "2 minutes ago" from one timestamp.In this PR I introduce
diffTimestamps
which produces a string like "2 minutes" from two time stamps.Unfortunately I have had to write my own version of this as we are using an old version of Luxon. I'm not sure how much hassle it would be to upgrade Luxon.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: