title: Python: get ordinal from time
body: <p>I want to do regression on several features, and one of them is time. Therefore, I need to convert time into a quantitative variable, e.g. an integer.</p>
  
  <p>In particular, I would like to obtain an ordinal number from a <code>datetime.time</code> object. Is it there a direct method to do it?</p>
  
  <p>I know this can be done by the method <code>toordinal()</code> for <code>datetime.date</code> objects, but the same method does not exist for <code>datetime.time</code></p>