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
#22 fixes a problem with times below 24 hours returning an empty string instead of "0 days", but that's a bare minimum fix. "0 days" is still not very helpful. Currently we have to specify whether we want D, D+H+M, or D+H+M+S, leaving it up to the caller to figure out which granularity is appropriate.
I propose here a wrapper or alternative to PrintDateDelta that returns just the most prominent unit. For times over 24 hours, it will return day(s). For 1-24 hours, hours. For 1-60 minutes, minutes. And for 1-60 seconds, seconds.
I'd be happy to implement this if it's a welcome feature.
Activity