Add 0 to numbers for make right format hours/minutes/seconds months/days

When it is necessary to format a number by prefixing zeros as there is no right function (“n0” + number), I created this function, I hope it helps many, it is valid in the example for a time.funz right


Is this the same thing, or the other way around ?

How to get leading zeros in App Inventor



I’d say a little more complicated, but efficient.
in fact I noticed an error … it is not valid in dates / times but in numbers with more than 1 digit. forgive me.