Revision: 16640
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 10, 2009 20:24 by nhassan
Initial Code
function to_text( s ) { var second = s % 60; var hour = Math.floor( (s/60) / 60 ); var minute = Math.floor( (s/60) % 60 ); return hour + 'h ' + minute + 'm ' + second + 's'; }
Initial URL
Initial Description
to_text( int ) -- the int is the number of seconds.
Initial Title
second to hour minute second
Initial Tags
Initial Language
JavaScript