On 2015-06-29 02:19 AM, Hal Murray wrote:
Looks to me they mean 128 bits?
How did you get that?
Er, by not thinking very clearly :-\

supported by a signed 8-octet integer in nanoseconds centered on
8*8 is 64.  I didn't see anything about using two of them.
Right. My obvious error.

POSIX uses 32 bits of seconds and 32 bits of nanoseconds.  That will wrap in
2038.  Using all nanoseconds gets a few more bits so the overall range will
be a bit bigger.  (Whether it's enough bigger is another matter.)

You can get to approximately 3000 years of seconds and retain the Leap Second count in 32 bits with -

21 bits unsigned - Days (86400 second days) (2^21 = 2097152 max / 365.2425 = 5741.8 years max) 11 bits unsigned - Leap Seconds (2^11 = 2048 max * 1.65 Years per Leap Second = 3379.2 years max approx)

-Brooks

_______________________________________________
LEAPSECS mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/leapsecs

Reply via email to