code: public LocalTime toLocalTimeBin(byte[] bytes) throws PSQLException {
      if (bytes.length != 8) {
        throw new PSQLException(GT.tr("Unsupported binary encoding of {0}.", "time"),
            PSQLState.BAD_DATETIME_FORMAT);
      }
  
      long micros;
  
      if (usesDouble) {
        double seconds = ByteConverter.float8(bytes, 0);
  
        micros = (long) (seconds * 1000000d);
      } else {
        micros = ByteConverter.int8(bytes, 0);
      }
  
  
      return LocalTime.ofNanoOfDay(micros * 1000);
    }
docs: Returns the SQL Time object matching the given bytes with {@link Oid#TIME}.
  
  @param bytes The binary encoded time value.
  @return The parsed time object.
  @throws PSQLException If binary format could not be parsed.