vi/timeago

what about future times?

fdncred opened this issue · 2 comments

It would be nice to have the equivalent of .ago("ago") but for future times like .in("in") so when you have a time in the future it says in 8 hours and ago() and in() are mutually exclusive.

vi commented

Will it be similarly easy in in other languages?

ago adjustable was created with an eye to allow prepending "in " manually if needed (by using .ago("")). But proper support should come with i18n.

I don't speak other languages well, but google translate says it could work with:

English: in 8 hours
French: dans 8 heures
Spanish: en 8 horas
Italian: tra 8 ore