jintervals icon indicating copy to clipboard operation
jintervals copied to clipboard

In addition to {Greatest} implement {Next}

Open nene opened this issue 16 years ago • 0 comments

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.

nene avatar Oct 27 '09 21:10 nene