public LocalTime toLocalTime ( String s ) throws SQLException { if ( s == null ) { return null ; } if ( s . equals ( "24:00:00" ) ) { return LocalTime . MAX ; } try { return LocalTime . parse ( s ) ; } catch ( DateTimeParseException nfe ) { throw new PSQLException ( GT . tr ( "Bad value for type timestamp/date/time: {1}" , s ) , PSQLState . BAD_DATETIME_FORMAT , nfe ) ; } }
Parse a string and return a LocalTime representing its value .