Jul-06-2020, 08:45 PM
hex()
is a function that takes a number and turns it into a string (one that looks like a hex representation of a decimal number). That makes NowTime a list of strings, not a list of integers.>>> type(hex(24)) <class 'str'>
0x18
and 24
are the exact same thing. You don't need to convert one into the other. I think you just need to get rid of the hex conversions.>>> 0x18 == 24 True