You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
15 lines
354 B
// time_string_nodc(time_in_tics)
|
|
|
|
// make the vars
|
|
var sc = string(floor((argument0/60) mod 60));
|
|
var mi = string(floor(argument0/3600));
|
|
// check if they're right length
|
|
if (string_length(sc) < 2) then sc = "0"+sc;
|
|
// and check to make sure this needs to be unset if negative
|
|
if (argument0 < 0){
|
|
ms = "--";
|
|
sc = "--";
|
|
}
|
|
// done
|
|
return mi+":"+sc;
|