Converting time with scand is giving me NULL
I'm trying to get the processing start time and then subtract it from the processing end time. I need to convert the time before doing the math, right?
both of my scand commands give me NULL. Can you guys see what I did wrong here?
var startTime = util.printd("HH:MM:ss", new Date());
var compStartTime = util.scand("HH:MM:ss",startTime);
app.alert("start time converted: "+compStartTime);
// Do some stuff
var finishTime = util.printd("HH:MM:ss", new Date());
var compFinishTime = util.scand("HH:MM:ss", finishTime);
var calcTime = compFinishTime - compStartTime;
var finalTime = util.printd("HH:MM:ss",calcTime);
app.alert(finalTime);
Thanks for your help!
Rick
