Hi,
Problem Background:
I have a large array (500k to 1M) of timestamps that I'm converting to datevectors using datevec(). These timestamps correspond to video frame timestamp metadata, so this data has a resolution down to the millisecond. However, there were glitches in certain frames, and the timestamp data from that frame and subsequent frames was shifted to a time of several months earlier than the actual date and time. I am calculating the elapsed time between the nframe (jump frame) and nframe-1 (last frame with the correct timestamp) using etime(), which gives me an answer in seconds. For an elapsed time 'et' of several months, this value can be several+ millions of seconds.
Problem Description:
What I need to do is add 'et' to nframe's datetime value. The problem is 'et' is in seconds, and I'm working with datevectors and datatime data types. How do I explicitly add millions of seconds to nframe's datetime or datevector 'seconds' value, and have the datevector or datetime datatype automatically shift the months/days/hours/minutes/seconds values to accomidate the addition of millions of seconds?
Much thanks,
Brad