Hello,
I could ask someone for help with a feature that shows me segments by the specified time
switch:
Time ON:
Time OFF:
Thank you
var Time = System.getClockTime();
var timeSecString = Lang.format("$1$", [Time.sec.format("%.2d")]);
var clockTime = System.getClockTime();
if (clockTime.hour >= 18 or clockTime.hour < 6) {
dc.drawText(x, y, $.fontSeconds, timeSecString, Graphics.TEXT_JUSTIFY_LEFT);
}
}