The basic algorithm for converting seconds to days/hours/minutes/seconds:
(time = x seconds)
days = time / 86400
hours = (time / 3600) - (days * 24)
minutes = (time / 60) - (days * 1440) - (hours * 60)
seconds = time mod 60
No comments:
Post a Comment