Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
seconds to days: hours: min: sec
#1
is there a func that will turn a number of seconds into a d:h:mConfused format or do I just do the work with division and remainders?
An old blog on QM coding and automation.

The Macro Hook
#2
Macro Macro1862
Code:
Copy      Help
int ns=60*60*24+(60*60)+61
out TimeSpanToStr(ns*10000000L 1)
;or
out TimeSpanToStr(TimeSpanFromParts(0 0 0 ns) 1)
note: 10000000L, not 10000000.


Forum Jump:


Users browsing this thread: 1 Guest(s)