GetTime: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">int int getTime ()</syntaxhighlight> | |||
==Example== | ==Example== | ||
hour, min = [[getTime]] () | hour, min = [[getTime]] () | ||
[[serverChat]] ( "The current time is ", hour, ":", min ) | [[serverChat]] ( "The current time is ", hour, ":", min ) |
Revision as of 02:30, 18 May 2006
Description
This function returns the current time as two ints (hour and minute).
Syntax
int int getTime ()
Example
hour, min = getTime () serverChat ( "The current time is ", hour, ":", min )