User Tools

Site Tools


lua:gettime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lua:gettime [2015/01/08 07:46] (current)
vodur created
Line 1: Line 1:
 +Returns the current system time in seconds. Similar to calling os.time() with no argument, but also gives milliseconds.
 +
 +<code lua>
 +say(os.time()) ​
 +say(gettime())
 +</​code>​
 +
 +<​code>​
 +You say '​1420731923'​
 +You say '​1420731923.3929'​
 +</​code>​
 +
  
lua/gettime.txt ยท Last modified: 2015/01/08 07:46 by vodur