code: def fmt_iso(timestamp):
      
      try:
          return fmt.iso_datetime(timestamp)
      except (ValueError, TypeError):
          return "N/A".rjust(len(fmt.iso_datetime(0)))
docs: Format a UNIX timestamp to an ISO datetime string.