eastern-flames/eastern flames/scripts/format_time/format_time.gml

9 lines
259 B
Plaintext
Raw Permalink Normal View History

2022-08-07 21:14:04 +00:00
function format_time(seconds) {
var time = "";
second = floor(seconds%60);
minute = floor(seconds/60)%60;
hour = floor(seconds/60/60)%60;
//day = ((seconds-minute-second)/60)%24;
time = string(hour)+":"+string(minute)+":"+string(second);
return time;
}