title: Convert date string with days as a float to datetime object
body: <p>I have a array of floats in Python that look like:</p>
  
  <pre><code>[20010101.0, 20010101.25, 20010101.5, 20010101.75, 20020102.0, ...]
  </code></pre>
  
  <p>How can I convert this to a <code>datetime</code> object instance taking the decimals properly into account, so that I do not lose the information of the hours?</p>
  
  <pre><code>dat1 = dt.datetime.strptime(str(20010101.25), "%Y%m%d.%f")
  print(dat1.date())
  print(dat1.hour)
  </code></pre>
  
  <p>gives, logically:</p>
  
  <pre><code>2001-01-01
  0
  </code></pre>
  
  <p>but I would like it to give:</p>
  
  <pre><code>2001-01-01
  6
  </code></pre>