Posts: 1,000
Threads: 253
Joined: Feb 2008
str sTime="21:42:57"
str Length=30.32
need to add Length to sTime
get result "21:43:29.32"
Must be simple...I can't figure it out right now for some reason!
Posts: 12,095
Threads: 142
Joined: Dec 2002
Macro
Macro1271
str sTime="21:42:57"
SYSTEMTIME st; st.wSecond=30
DATE d=sTime
d.add(st)
sTime=d
sTime+".32" ;;DATE does not store milliseconds
out sTime
Posts: 1,000
Threads: 253
Joined: Feb 2008
Gintaras,
Working with time is so cumbersome in quickmacros!
Could you include some new functions, variable, and classes for adding time in the next QM.
It sure would help me a lot...since I write a lot for the radio station here, time pops up all the time for the automation.
example:
TIME start=19:27:30.32
TIME end=19:27:45.34
TIME length=end-start
out length;;00:00:15.02
or
TIME start=19:27:30.32
TIME length=30.02
TIME end=start+length
out diff ;;19:27:45.34
Something like this would be absolutely terrific!!!
Thanks,
jimmy Vig
Posts: 12,095
Threads: 142
Joined: Dec 2002