def _to_datetime(iso8601_time):
 if (iso8601_time is None):
  return None
 return iso8601_to_datetime(iso8601_time)

def _to_datetime ( iso8601_time ) : if ( iso8601_time is None ) : return None return iso8601_to_datetime ( iso8601_time )
convert a iso8601-formatted datetime to a :py:class:datetime .