def datetime_from_string(s):
 return datetime.datetime.strptime(s, '%Y-%m-%dT%H:%M:%S.%f')

def datetime_from_string ( s ) : return datetime . datetime . strptime ( s , '%Y-%m-%dT%H:%M:%S.%f' )
return a standard datetime .