public Timestamp parseTimestamp ( String strValue ) throws IllegalArgumentException { if ( fmt != null ) { Optional < Timestamp > parsed = tryParseWithFormat ( strValue ) ; if ( parsed . isPresent ( ) ) { return parsed . get ( ) ; } } // Otherwise try default timestamp parsing return Timestamp . valueOf ( strValue ) ; }
Parse the input string and return a timestamp value