Isn’t that what the emonCMS datatype PHPTIMESERIES is for? e.g. record data that’s coming in at variable intervals.
Ref: Data types - which one should I use? - #3 by pb66