Problem with 12h text based time display

Problem with displaying 0 instead of 12.

Hi @ll, i have a problem with a line watch display:

It should be capable to display 24h or 12h version,

24h are working fine but i can´t get 12 h working correctly.

The code of the big number in the middle #Dh# is working fine, but the hour numbers ±3 are not working correctly

For example:

((#Dh#+2)%12) shows 0 and not 12 as it should show when it is 10 o´clock…

Any suggestions how to solve this problem?

Help appreciated a lot!

Greetings, GAUSS.

Inspection enabled. It’s for 12 hours. It will be OK?

3 Likes

Great solution! Thank´s a lot! Works perfectly for positive values.

But - what´s with -1h -2h -3h ???

Done :slight_smile:

I’ll have to use that sometimes.

2 Likes

Thanks a lot! You made my day!!