title: How to compress a Unix timestamp?
body: <p>A Unix timestamp expressed in seconds is like the following (rounded up of course)</p>
  
  <pre><code>1409134929
  </code></pre>
  
  <p>The issue lies that our system is constrained by memory and we're generating and storing a timestamp every second. They are accessed randomly one by one, so a "whole" compression won't work.</p>
  
  <p><a href="https://github.com/antirez/smaz" rel="nofollow">Smaz</a> won't help as it only compresses short strings, neither <strong>LZMA</strong> is going to cut it.</p>
  
  <p>Is there some special compression algorithm or dictionary technique to achieve this type of compression?</p>