[Timestamp interpolation]
-
@JonB interpolate them into timestamps.
For example: I have two timestamps as follows:
timestamp1 = 19:43:10.000
timestamp2 = 19:43:20.000I want to find the timestamps values between these two with a step of 0.1 seconds:
timestamp1 = 19:43:10.000
timestamp_interp= 19:43:10.100
timestamp_interp1= 19:43:10.200
.
.
.
.
timestamp_interpn= 19:43:19.900timestamp2 = 19:43:20.000
In this case I'll have 100 intermediate timestamps between the first and the second one.To be more specific, is there any function in Qt that can interpolate QDateTime.
I checked the documentation but it seems that there isn't.
Maybe this function can do it :QDateTime QDateTime::addSecs(qint64 s) const
??
-
@appdev said in [Timestamp interpolation]:
To be more specific, is there any function in Qt that can interpolate QDateTime.
No but why should such a thing exist?
Convert your strings to QDateTime and calc the difference.