def import_date_time(format, _strptime=None):
 if (not _strptime):
  _strptime = datetime.datetime.strptime
 def import_date_time_lambda(value):
  if (not value):
   return None
  return _strptime(value, format)
 return import_date_time_lambda

def import_date_time ( format , _strptime = None ) : if ( not _strptime ) : _strptime = datetime . datetime . strptime def import_date_time_lambda ( value ) : if ( not value ) : return None return _strptime ( value , format ) return import_date_time_lambda
a wrapper around strptime .