Represent dates as tiny numbers, losing precision, for compact storage.
Represents dates as 3-bytes in msgpack. We assume dates after 1970, and reasonably close to 'now'. Their best use is for fairly short-lived expiration dates (months), which don't require incredible precision (nearest hour or nearest minute is fine). These constraints yield a compression of around 66%, which is fantastic for the intended uses.
var SmD = ;var s = SmD;// => 53391var l = SmD;// => 1371855692507var d = SmD;// => Fri Jun 21 2013 19:01:32 GMT-0400 (EDT)
var SmD =msg = ;var d = Date;// => 1371855692507var s = SmD;// => 53391msg;// => <SlowBuffer cb 42 73 f6 8f 8a 2d b0 00>msg;// => Pack <SlowBuffer cd d0 8f>
MIT. See LICENSE for details.