egoist / vue-timeago

A timeago component for Vue.
https://vue-timeago.egoist.sh
MIT License
729 stars 104 forks source link

Difference between 2 past dates #86

Closed AndreGuerra123 closed 5 years ago

AndreGuerra123 commented 6 years ago

Hello, It would be nice to have the difference between two past dates (not against current time/Date.now()), such as an elapsed time. For instance, the output would be: "23 min. elapsed.". A prop such as finalDate would be helpful. Regards, Andre

egoist commented 6 years ago

You can create a custom converter for this: https://github.com/egoist/vue-timeago/blob/master/README.md#converter