How to format Interval type to HH:MM format?
问题 I am using oracle DB with below column START_TIME INTERVAL DAY(0) TO SECOND(0) I am using jdbc template in java code to access this value using the row mapper and getString() method like below: (I am running a basic select query to fetch values from DB) String startTime = rs.getString("START_TIME"); and the value I get is in this format System.out.println(startTime); // 0 9:30:0.0 I am not able to format this value in the HH:MM format string. I do not need the seconds as I am ignoring that