title: python linux timestamp to date time and reverse
body: <p>i would like to know how to convert datetime <code>Wed Apr 24 19:25:06 2013 GMT</code> into Linux timestamp <code>1366831506000</code> (13 digits)] and reverse using python.</p>
  
  <p>for example:</p>
  
  <pre><code>Wed Apr 24 19:25:06 2013 GMT
  </code></pre>
  
  <p>to</p>
  
  <pre><code>1366831506000
  </code></pre>
  
  <p>and from</p>
  
  <pre><code>1366831506000
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Wed Apr 24 19:25:06 2013 GMT
  </code></pre>