jintervals
jintervals copied to clipboard
In addition to {Greatest} implement {Next}
Using {Greatest} often results in the loss of too much precision.
1.5 days will be reported by {Greatest} as 2 days. That's pretty far from exact. It might be good for many occasions, but often you would like to be just a little bit more precise.
The proposed solution is to implement {Next} (short of "Next to Greatest"). It would work like that:
jintervals(90, "{Greatest} and {N.}"); --> 1 minute and 30s
jintervals(121, "{Greatest} and {N.}"); --> 2 minutes and 1s
jintervals(60*70, "{Greatest} and {N.}"); --> 1 hour and 10m
Note that we probably do not want a result like this:
5 days and 0 hours
Instead this should be shown just as:
5 days
Therefore to implement this we also need to implement optional prefix text.