code: public LocalDateTime toLocalDateTimeBin(TimeZone tz, byte[] bytes) throws PSQLException {
  
      ParsedBinaryTimestamp parsedTimestamp = this.toParsedTimestampBin(tz, bytes, true);
      if (parsedTimestamp.infinity == Infinity.POSITIVE) {
        return LocalDateTime.MAX;
      } else if (parsedTimestamp.infinity == Infinity.NEGATIVE) {
        return LocalDateTime.MIN;
      }
  
      return LocalDateTime.ofEpochSecond(parsedTimestamp.millis / 1000L, parsedTimestamp.nanos, ZoneOffset.UTC);
    }
docs: Returns the local date time object matching the given bytes with {@link Oid#TIMESTAMP} or
  {@link Oid#TIMESTAMPTZ}.
  
  @param tz time zone to use
  @param bytes The binary encoded local date time value.
  @return The parsed local date time object.
  @throws PSQLException If binary format could not be parsed.