How much time since last frame

Even if the last frame was several days ago?

I was trying this

self.delta = os.time() - self.startTime

I read here that that doesn’t work because Codea is 32bit.

So then I thought about

os.date("*t")

I could save the data and then subtract it from the current time like above but what if the saved time was before a leap day? Or if you crossed into DST between runs?

Seems like there should be a easier way.

Any ideas

Thanks

Codea 2.0 is 64-bit, actually. os.time() doesn’t store the system time, though, it is an approximation of the CPU time used by the program in seconds.

I believe the only solution would be os.date(“*t”)