I try to make a timer wait before the excecution, but I have a bug to calculate how many second it has to wait before starting:

- Code: Select all
`DateToNum "[DayNum]/[MonthNum]/[Year]" "d/m/y" "[OpenDateNum]"`

StrReplace "16-11-2011" "-" "/" "[DateSTART]" ""

DateToNum "![DateSTART]" "d/m/y/" "[ToDayDateNum]"

StrParse "14:00" ":" "[T]" "[Temp]"

Math "([T1]*3600)+([T2]*60)" "0" "[ET1]"

StrParse "[Time24]" ":" "[T]" "[Temp]"

Math "([T1]*3600)+([T2]*60)" "0" "[ET2]"

Math "([OpenDateNum]*86400)+[ET1]" "0" "[OpenDateSec]"

Math "([TodayDateNum]*86400)+[ET2]" "0" "[ToDayDateSec]"

Math "([OpenDateSec]-[ToDayDateSec])*1000" "0" "[ElapsedSec]"

For example, I would like to know how many second we have to wait before the 16-11-2011 at 14:00 if now it is 15-11-2011 and 15:45.

Thanks

Alex