3 ms·
> Worst case, I guess it could interpret "year 128" as "year -127", and that would cause the system to roll from December 31, 2027 to January 1, 1773. Neat! We
by mytailorisrich 5y ago
> Worst case, I guess it could interpret "year 128" as "year -127", and that would cause the system to roll from December 31, 2027 to January 1, 1773. Neat!
Well, if the year is indeed stored using 7 bits (probably to save space in a packed structure) then there is no such thing as "year 128", which requires 8 bits. There are only years 0-127 or -64 to +63 if interpreted as signed value.