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] – created vodurlua:gettime [2026/10/15 20:39] (current) – removed - external edit (Unknown date) 127.0.0.1
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> 
-