Possible Duplicate:
Can Ruby print out time difference (duration) readily?
I have a length of time that is stored as a number of seconds. Is there a way to format it either into HH:MM format or to something human readable, such as '2 hours, 15 minutes'?