Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding time...to time.
#1
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!
#2
Macro Macro1271
Code:
Copy      Help
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
#3
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
#4
Better date/time functions (for QM < 2.3.2)


Forum Jump:


Users browsing this thread: 1 Guest(s)