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 15:46]
vodur created
— (current)
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.1420731969.txt.gz ยท Last modified: 2015/01/08 15:46 by vodur