Os: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
==Functions== | |||
=== date === | === date === | ||
'''Definition:''' | '''Definition:''' | ||
<br> | |||
os.date([format [, time]]) - | os.date([format [, time]]) -> date<br> | ||
'''Description:''' | '''Description:'''<br> | ||
return formatted date [http://www.lua.org/manual/5.1/manual.html#5.8] | return formatted date [http://www.lua.org/manual/5.1/manual.html#5.8] | ||
<br> | |||
'''Arguments:''' | '''Arguments:''' | ||
<br> | |||
<br> | |||
'''Returns:''' | '''Returns:''' | ||
<br> | |||
'''date''' | '''date''' | ||
=== difftime === | === difftime === | ||
'''Definition:''' | '''Definition:''' | ||
<br><br> | |||
'''Description:''' | '''Description:'''<br> | ||
time difference betweeen the two arguments [http://www.lua.org/manual/5.1/manual.html#5.8] | time difference betweeen the two arguments [http://www.lua.org/manual/5.1/manual.html#5.8] | ||
<br><br> | |||
'''Arguments:''' | '''Arguments:''' | ||
<br><br> | |||
'''Returns:''' | '''Returns:''' | ||
<br><br> | |||
'''Example:''' | '''Example:''' | ||
<br><br> | |||
=== time === | === time === | ||
'''Definition:''' | '''Definition:''' | ||
<br> | |||
os.time() - | os.time() -> time<br> | ||
'''Description:''' | '''Description:'''<br> | ||
retunrs Unix time [http://www.lua.org/manual/5.1/manual.html#5.8] | retunrs Unix time [http://www.lua.org/manual/5.1/manual.html#5.8] | ||
<br> | |||
'''Returns:''' | '''Returns:''' | ||
<br> | |||
'''time''' unix time | '''time''' unix time | ||
[[Category:Tables]] | [[Category:Tables]] | ||
Latest revision as of 18:54, 20 November 2010
Functions
date
Definition:
os.date([format [, time]]) -> date
Description:
return formatted date [1]
Arguments:
Returns:
date
difftime
Definition:
Description:
time difference betweeen the two arguments [2]
Arguments:
Returns:
Example:
time
Definition:
os.time() -> time
Description:
retunrs Unix time [3]
Returns:
time unix time