title: How to get days from Epoch january 1 1970 in datetime.datetime format
body: <p>I am using fatsecret REST api and the api specifies that I need to get the number of days in <code>dateint</code> format.</p>
  
  <p>I have tried all the posts on stack overflow I could find but all the solutions provided turn the datetime in seconds to an int. Which gives me this error</p>
  
  <p><code>datetime.datetome.now()</code> returns the date like this:
   2018-04-23 01:59:45.451741</p>
  
  <p>If I try to strformat the date I get this error:</p>
  
  <pre><code>TypeError: unsupported operand type(s) for -: 'float' and 'datetime.datetime'
  </code></pre>
  
  <p>I just need the number of days from january 1, 1970 in a <code>datetime.datetime</code> format. Thanks</p>