[solved]Time of day in milliseconds using QDateTime::toMSecsSinceEpoch();
General and Desktop
3
Posts
2
Posters
13.3k
Views
1
Watching
-
Hi!
I need to know the time of day in milliseconds.
Basically the value of a counter, that starts every day at 0ms and ends at 86400000ms.My idea is simple enough:
Take the present QDateTime::toMSecsSinceEpoch(); timestamp and subtract the timestamp from tonight at 00:00:00,000... but how do I get the MSecsSinceEpoch of a certain point in the past?There has to be an easy way, I just havn't found it yet...
Cheers,
schmaunz