I am dealing with a date in the follwoing format "YYYYMMDDHHmmss". Does anyone know of a way that I can get the CLOCK function to recognize that format and convert the date to seconds? Here is what I have tried.
set fmat {%Y%m%d%%H%M%S}
set msgTime [clock format $pv1_45 -format $fmat ]
set msgTime [clock scan $msgTime]
set curTime [clock seconds]
set difference [expr {$curTime - $msgTime}]
It does not like this statement:
set msgTime [clock format $pv1_45 -format $fmat ]
Any pointers would be great, thanks in advance.
Ati2ude
set fmat {%Y%m%d%%H%M%S}
set msgTime [clock format $pv1_45 -format $fmat ]
set msgTime [clock scan $msgTime]
set curTime [clock seconds]
set difference [expr {$curTime - $msgTime}]
It does not like this statement:
set msgTime [clock format $pv1_45 -format $fmat ]
Any pointers would be great, thanks in advance.
Ati2ude