LuaNET, the lua 5.1 api documentation!

Lua-Api

Operating System

[LUA 5.1] os.time

function os.time ( table )
Returns the current time when called without arguments,
or a time representing the date and time specified by the given table.
This table must have fields
Code:
year
,
Code:
month
, and
Code:
day
,
and may have fields
Code:
hour
,
Code:
min
,
Code:
sec
, and
Code:
isdst

(for a description of these fields, see the
Code:
os.date
function).



The returned value is a number, whose meaning depends on your system.
In POSIX, Windows, and some other systems, this number counts the number
of seconds since some given start time (the "epoch").
In other systems, the meaning is not specified,
and the number returned by
Code:
time
can be used only as an argument to
Code:
date
and
Code:
difftime
.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.393 seconds with 22 queries.