if(hour<= 12) { format(string, sizeof(string), "%d:0%d", hour, minuite); } else { format(string, sizeof(string), "%d:0%d", hour-12, minuite); }