code: def date_to_um_date(date):
      
  
      assert date.hour == 0 and date.minute == 0 and date.second == 0
  
      return [date.year, date.month, date.day, 0, 0, 0]
docs: Convert a date object to 'year, month, day, hour, minute, second.'