code: public static String format(final LocalTime self, String pattern) {
          return self.format(DateTimeFormatter.ofPattern(pattern));
      }
docs: Formats this time with the provided {@link java.time.format.DateTimeFormatter} pattern.
  
  @param self    a LocalDateTime
  @param pattern the formatting pattern
  @return a formatted String
  @see java.time.format.DateTimeFormatter
  @since 2.5.0