GetTime: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">hour, min = getTime () | <syntaxhighlight lang="lua">hour, min = getTime () | ||
outputChatBox ( "The current time is ", hour, ":", min )</syntaxhighlight> |
Revision as of 02:31, 20 May 2006
Description
Returns the current time as two integers (hour and minute).
Syntax
getTime ()
Example
hour, min = getTime () outputChatBox ( "The current time is ", hour, ":", min )