H range is 0 to 23, according to
from
Also 0x24 = 2*16 + 4 = 32+4 = 36, a very long day.
By choosing date and time formats wisely, you can set up a text string with everything you need, at set offsets, arranged in chronological order like 20231227.
Working exclusively in text should be easier to debug.