Durations in Java

J

JGralton

Hi,

I am trying to store the duration of a database call in a Data object
but am getting an "Unparsable date" error. I can't see anything wrong
with this can anyone point me in the right direction.

private static final SimpleDateFormat SDF_DURATION = new
SimpleDateFormat("HH:mm:ss.SSS");
SDF_DURATION.parse(duration);

Leads to: Unparseable date: "00:00:00.015"

Any help appreciated,

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top