Os: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
m →time |
m →date |
||
Line 2: | Line 2: | ||
=== date === | === date === | ||
'''Definition:''' | '''Definition:''' | ||
<br><br> | <br> | ||
os.date([format [, time]]) -> date<br> | |||
'''Description:'''<br> | '''Description:'''<br> | ||
return formatted date [http://www.lua.org/manual/5.1/manual.html#5.8] | |||
<br> | |||
'''Arguments:''' | '''Arguments:''' | ||
<br><br> | <br> | ||
<br> | |||
'''Returns:''' | '''Returns:''' | ||
<br> | |||
''' | '''date''' | ||
=== difftime === | === difftime === |
Revision as of 18:43, 31 January 2009
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