The built-in Date object will return the system time and date, in pieces. The expressions for the time, if you don't rename the object to something other than 'Date', are Date.GetHour
, and Date.GetSeconds
. It also can return the date as a string.
If you are willing to use python, you can import the time
module and use the time.time()
function to get system time. That module also has a number of other functions for working with times.