title: len() of datetime.datetime object
body: <p>I am trying to get the length of various types of data in python:</p>
  
  <pre><code> if type(rowoutClipFC[fieldnum]) in (int, float, datetime.datetime):
         lenrowoutClipFC = len(str(rowoutClipFC[fieldnum]))
   else:
         lenrowoutClipFC = len(rowoutClipFC[fieldnum])
  </code></pre>
  
  <p>The types I have come across so far are int(), float(), str(), str() with ascii characters, datetime.datetime.</p>
  
  <p>I need to convert the int(), float(), datetime.datetime objects to str() so I can get length, whereas I do not need to do this with the str() and str() with ascii. For some reason, datetime.datetime does not pass the smell test of the first if statement, so it errors. I'm not sure why it isn't....</p>
  
  <p>the error returns:</p>
  
  <pre><code>lenrowoutClipFC = len(rowoutClipFC[fieldnum])
  TypeError: object of type 'datetime.datetime' has no len()
  </code></pre>
  
  <p>So, it's moving onto the else statement which is not what I was expecting...</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>What I am expecting is this:</p>
  
  <pre><code>for row in arcpy.SearchCursor("Strategic_Land_Resource_Planning_Area"):
      type(row.APPROVAL_DATE)
  </code></pre>
  
  <p>This returns <code>datetime.datetime</code></p>
  
  <p>The field in the table I am pulling the data from is a 'date' field. So, I guess it returns a datetime.datetime type...even though someone mentioned that there is no such thing as a datetime.datetime type?</p>
  
  <p>So, I further test:</p>
  
  <pre><code>import datetime
  for row in arcpy.SearchCursor("Strategic_Land_Resource_Planning_Area"):
      if type(row.APPROVAL_DATE) == datetime.datetime:
           print 'Yes"
  </code></pre>
  
  <p>This returns <code>Yes</code></p>
  
  <p>So, I am not sure why my script at the top doesn't satisfy the if condition....</p>
  
  <p>I tries using <code>isinstance</code> with the same reults. It doesn't satisfy in the if statement.</p>