<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[solved]Time of day in milliseconds using QDateTime::toMSecsSinceEpoch();]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I need to know the time of day in milliseconds.<br />
Basically the value of a counter, that starts every day at 0ms and ends at 86400000ms.</p>
<p dir="auto">My idea is simple enough:<br />
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?</p>
<p dir="auto">There has to be an easy way, I just havn't found it yet...</p>
<p dir="auto">Cheers,<br />
schmaunz</p>
]]></description><link>https://forum.qt.io/topic/42478/solved-time-of-day-in-milliseconds-using-qdatetime-tomsecssinceepoch</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 19:57:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42478.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Jun 2014 14:36:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [solved]Time of day in milliseconds using QDateTime::toMSecsSinceEpoch(); on Fri, 13 Jun 2014 10:08:18 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="hskoglund" date="1402587810"]<br />
QDateTime::currentMSecsSinceEpoch() - QDateTime(QDate::currentDate()).toMSecsSinceEpoch();<br />
[/quote]</p>
<p dir="auto">That is exactly what I was looking for.<br />
Thank you very much :)</p>
]]></description><link>https://forum.qt.io/post/231828</link><guid isPermaLink="true">https://forum.qt.io/post/231828</guid><dc:creator><![CDATA[Mr.Floppy]]></dc:creator><pubDate>Fri, 13 Jun 2014 10:08:18 GMT</pubDate></item><item><title><![CDATA[Reply to [solved]Time of day in milliseconds using QDateTime::toMSecsSinceEpoch(); on Thu, 12 Jun 2014 15:43:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi, try<br />
QDateTime::currentMSecsSinceEpoch() - QDateTime(QDate::currentDate()).toMSecsSinceEpoch();</p>
]]></description><link>https://forum.qt.io/post/231751</link><guid isPermaLink="true">https://forum.qt.io/post/231751</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 12 Jun 2014 15:43:30 GMT</pubDate></item></channel></rss>