code: def to_date(ts: float) -> datetime.date:
      
      return datetime.datetime.fromtimestamp(
          ts, tz=datetime.timezone.utc).date()
docs: Convert timestamp to date.
  
      >>> to_date(978393600.0)
      datetime.date(2001, 1, 2)