I'd still like to retain the option of sub-second precision but this works
for me. Losing precision when translating to http/1 is acceptable.
On Wed, Jan 16, 2013 at 3:45 PM, Nico Williams <nico@cryptonector.com>wrote:
> On Wed, Jan 16, 2013 at 5:39 PM, Mark Nottingham <mnot@mnot.net> wrote:
> > On 17/01/2013, at 10:35 AM, Nico Williams <nico@cryptonector.com> wrote:
> > Yep, but you either need to make the epoch start at least a few years
> ago (old Last-Modified times, is important for heuristic freshness), OR
> keep it signed (losing a bit).
> >
> > And I think you need more than 12 bits for seconds in a day...
>
> Oops, for some reason I thought of seconds in an hour. So 5 more
> bits, and we're about even with seconds since epoch. Either way
> getting from 24 bytes to 4 is pretty good, and no compression scheme
> will do better.
>