Say I have a MemoryBlock[V0].StopTime, an unix timestamp. I would like to calculate the average .StopTime. I can create a Task, Index Loop through the MemoryBlock, do an EPOCH2DT, calculate the (UDT0.Hours x 3600 + UDT0.Minute x 60 + UDT0.Seconds), and create an average "seconds into day" of that number. It's kind of a kludge, especially when you want to do something with that number, need to do a bunch of modulus math to put it back into UDT1.Hours, Minutes, Seconds. Also becomes even more tricky when sometimes are before midnight, and others after midnight.
Is there an easier way to do this? Anybody have any tricks up their sleeves?