title: Converting a list of datetime objects to a list of number of days since a certain date
body: <p>I have a large list of dates that are datetime objects like for example</p>
  
  <pre><code>[datetime.datetime(2016,8,14),datetime.datetime(2016,8,13),datetime.datetime(2016,8,12),....etc.]
  </code></pre>
  
  <p>Instead of datetime objects of the date what I want instead is a list of numerical integer values since the date <strong>1/1/1900</strong>. I have defined 1/1/1900 as the base date and in the <em>for</em> loop below, I have calculated the days between the date in the list since that base date:</p>
  
  <pre><code>baseDate = datetime(1900,1,1)
  numericalDates = []
  for i in enumerate(dates):
      a=i[1]-baseDate
      numericalDates.append(a)
  
  print(numericalDates)
  </code></pre>
  
  <p>However when I print this out, I get <em>datetime.timedelta</em> objects instead</p>
  
  <pre><code>[datetime.timedelta(42592), datetime.timedelta(42591), datetime.timedelta(42590),...etc.]
  </code></pre>
  
  <p>Any ideas on how I can convert it the proper way?</p>