How many days can I store in 4 bytes with a precision of one millisecond?

advertisements

now I meet a issue to research how many days can I store in 4 bytes with millisecond precision. who knows that? thanks


4 bytes = 2^32 = 4294967296 1 day = 24 * 60 * 60 * 1000 miliseconds = 86400000

4294967296 / 86400000 = 49.71026962962962962962962962963

or about 49 days 17 hours 2 minutes and 47 seconds