Howdy,
is there any way (like toFixed) to specify that both digits of getMinute() get displayed? ie. 00 not 0?
thanks
Mark
is there any way (like toFixed) to specify that both digits of getMinute() get displayed? ie. 00 not 0?
thanks
Mark
function padTime(input){
if(input<10)
var ret = "0"+input;
else
var ret = input;
return ret;
}
var x = addLibrary("sampleFunctions.efsLib");//calls the library
function main(){
debugPrintln(x.padTime(getHour(0))+":"+x.padTime(getMinute(0))+" instead of "+getHour(0)+":"+getMinute(0))
}
Comment