Convert hh:mm:ss in millisecond

Hi, I want to convert the time ( which is available in the format hh:mm:ss ) into milliseconds. Suggest the code for the same.
[140 byte] By [moni123a] at [2007-10-1 4:17:44]
# 1
The parse method of java.text.DateFormat is how you read the time.Calculating a time interval in milliseconds requires a second point in time, though. The Calendar, GregorianCalendar, and Date classes may be useful.
ChuckBinga at 2007-7-9 4:48:03 > top of Java-index,Administration Tools,Sun Connection...
# 2

You can always convert java.util.Date to java.sql.Timestamp, which does take milliseconds as an argument. However, you also will need some arbirtary rule to determine number of milliseconds. If you are reading in down to the second level, how do you 'know' what the millisecond was? You either have to always set it to zero (in this case, why use it?), set it to a random number (see previous objection), or retrieve the timestamp from a source that actually does record the proper milliseconds (such as Oracle's SYSDATE function).

- Saish

Saisha at 2007-7-9 4:48:03 > top of Java-index,Administration Tools,Sun Connection...