I would like to express some time intervals in a humanoid format. I was looking for a library that could automatically select the correct unit size. Intervals will range from milliseconds to several weeks. Something like
I know that I can manually check the size of the argument and then convert it, but before reinventing the wheel, I wanted to ask if there is a (standard) library for this.
Edit
My entry in nanoseconds and exit as described above.
Matteo
source share