<?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[Adding System Time and days lister]]></title><description><![CDATA[<p dir="auto">Good day guys, how can i add the system time in my QML application and a command that shows the duration of days the user used the application?<br />
i want to show the days in a text Element</p>
]]></description><link>https://forum.qt.io/topic/8274/adding-system-time-and-days-lister</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 14:43:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/8274.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Aug 2011 15:27:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding System Time and days lister on Thu, 04 Aug 2011 15:35:14 GMT]]></title><description><![CDATA[<p dir="auto">Take a look at the javascript "Date":<a href="http://www.w3schools.com/jsref/jsref_obj_date.asp" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.w3schools.com/jsref/jsref_obj_date.asp</a> object.</p>
<p dir="auto">As for duration of days, you'll have to save (and restore) the date on the first use of your app and then do the calculation yourself later on.  There are a number of "examples":<a href="http://www.javascriptkit.com/javatutors/datedifference.shtml" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.javascriptkit.com/javatutors/datedifference.shtml</a> on the web of how to do that.</p>
]]></description><link>https://forum.qt.io/post/103570</link><guid isPermaLink="true">https://forum.qt.io/post/103570</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Thu, 04 Aug 2011 15:35:14 GMT</pubDate></item></channel></rss>