Os: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Mick (talk | contribs)
mNo edit summary
m Reverted edits by Otutytaqo (Talk) to last version by ArielF
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
=== date ===
=== date ===
'''Definition:'''
'''Definition:'''
<br><br>
<br>
os.date([format [, time]]) -> date<br>
'''Description:'''<br>
'''Description:'''<br>
print 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><br>
<br>
'''Arguments:'''
'''Arguments:'''
<br><br>
<br>
<br>
'''Returns:'''
'''Returns:'''
<br><br>
<br>
'''Example:'''
'''date'''
<br><br>
 
 


=== difftime ===
=== difftime ===
Line 31: Line 30:
=== time ===
=== time ===
'''Definition:'''
'''Definition:'''
<br><br>
<br>
os.time() -> time<br>
'''Description:'''<br>
'''Description:'''<br>
print 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><br>
<br>
'''Arguments:'''
<br><br>
'''Returns:'''
'''Returns:'''
<br><br>
<br>
'''Example:'''
'''time''' unix time
<br><br>
 
 
[[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