Showing posts with label utility. Show all posts
Showing posts with label utility. Show all posts

@since Saturday, March 24, 2012

Duration to Human Readable Format

@throws 0 exception(s)
Any developer at some point writes this kind of code snippet:


And how often the above developer wishes to output this duration variable in some human readable format?
Here's a short utility to perform such conversion


Enjoy (and don't forget to credit in case you borrow this code)!