Adding System Time and days lister
-
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?
i want to show the days in a text Element -
Take a look at the javascript "Date":http://www.w3schools.com/jsref/jsref_obj_date.asp object.
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":http://www.javascriptkit.com/javatutors/datedifference.shtml on the web of how to do that.