I have a java.sql.Time (00:04:24) from which I want to get the number of milliseconds (or seconds):
ResultSet rs = ...;
java.sql.Time time = rs.getTime("DURATION");
long millis = time.getTime();
But the result are -3336000 instead of 264000.
Click here to see my output.
Why isn't the output 264000?