jon zendatta
May 28th, 2011, 01:42 AM
How do I express seconds as hour,minutes,seconds?
This worked
min = total_seconds / 60;
sec = total_seconds % 60;
This did not.
hour = total_seconds / 3600;
min = total_seconds % 3600;
sec = min % 60;
This worked
min = total_seconds / 60;
sec = total_seconds % 60;
This did not.
hour = total_seconds / 3600;
min = total_seconds % 3600;
sec = min % 60;