You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RelativeTime plugin is pretty useful. But it has its cons.
The current output of RelativeTime would be as specific as the amount of the current time units (e.g 44 seconds, 14 minutes, 3 hours) but not such as "1 hour and 2 minutes".
My suggestion is to control the accuracy of the relative time. For example:
The
RelativeTime
plugin is pretty useful. But it has its cons.The current output of
RelativeTime
would be as specific as the amount of the current time units (e.g 44 seconds, 14 minutes, 3 hours) but not such as "1 hour and 2 minutes".My suggestion is to control the accuracy of the relative time. For example:
Time from now
.fromNow(RelativeTimeOpts)
This way, when we type
.fromNow({untilUntil: 'seconds'})
it will print:2 hours, 25 minutes and 3 seconds ago.
I guess that there's a better name than
untilUnit
out there, but you got the point :)PS - I was sort-of already suggested it here - #414 but in a different way.
The text was updated successfully, but these errors were encountered: