Hello,
I am no experience programer, just an enthusiast and it seems like my minutes formating is only showing one digit when below 10 min mark.
I have the hour and min divided, it shows on screen but like i said only one digit.
Here is part of the code.
//Set Time hour and minute separate.
var date = Gregorian.info(Time.now(), Time.FORMAT_SHORT);
var clockTime = Sys.getClockTime();
var hour = clockTime.hour;
var minutes = clockTime.min;
var timeHourString = Lang.format("$1$", [clockTime.hour, ("%02d")]);
var timeMinString = Lang.format("$1$", [clockTime.min, ("%02d")]);
dc.setColor(Gfx.COLOR_BLACK,Gfx.COLOR_TRANSPARENT);
dc.drawText(175,57, Gfx.FONT_NUMBER_THAI_HOT,timeHourString,Gfx.TEXT_JUSTIFY_CENTER);
dc.drawText(175,121, Gfx.FONT_NUMBER_THAI_HOT,timeMinString,Gfx.TEXT_JUSTIFY_CENTER);
Can please help?
