andrewplummer/Sugar — Issue #104: Date.relative() without "from now" 
Author: vgrichina
Created: 2012-02-06 23:59:52+00:00
State: open

There is often a need to format time duration, right now I do it as:

duration.millisecondsFromNow().relative().replace("from now", "")

I think there either should be some alternative to `.relative()` which would give string without `"from now"`, or even better the method of `Number`, e.g. `Number.duration`, similar to `Number.bytes()`, but for time duration.

I probably can even make patch myself if such feature is ok to be accepted.