[skip ci] small refactor

This commit is contained in:
Brahim Hadriche committed 2025-06-09 16:19:47 -04:00
1 parent 2c513afafd
commit 4906b69f4a
4 files changed
+14 -39

No files matched your search

+3 -11
View File
@@ -44,19 +44,11 @@ function Update()
end if
if hours > 12
hours = hours - 12
hours -= 12
end if
hoursStr = hours.ToStr()
minutesStr = minutes.ToStr()
if hours < 10
hoursStr = "0" + hoursStr
end if
if minutes < 10
minutesStr = "0" + minutesStr
end if
hoursStr = hours.ToStr("%02d")
minutesStr = minutes.ToStr("%02d")
m.top.text = hoursStr + ":" + minutesStr + " " + ampm
end function