- From: Amos Jeffries <squid3@treenet.co.nz>
- Date: Fri, 18 Jan 2013 22:21:40 +1300
- To: ietf-http-wg@w3.org
On 17/01/2013 12:35 p.m., Nico Williams wrote: >>> WRT years up to 9999 -- yes. The method I used consumes an extra byte after 2106... and then another in 4147. However, just one more byte buys up to 36812! > If we use seconds since epoch, set a new epoch, use a variable length > integer encoding for seconds since epoch, we get to 32 bits for a few > decades. Four bytes. > > If we use Julian days, set a new epoch, use a variable length integer > encoding for julian day then we can get down to 13-14 bits to start. > Add 12 bits for seconds, or multiply days by 3600 and add seconds and > we're under 32 bits -- almost as low as 24, but still 4 bytes. Can't > get much better. > Noting that the Julian calendar was deprecated around 400 years ago. We are on Greogrian calendar these days. Amos
Received on Friday, 18 January 2013 09:22:06 UTC