GetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">int int getTime ()</syntaxhighlight>
<syntaxhighlight lang="lua">getTime ()</syntaxhighlight>


==Example==
==Example==
<syntaxhighlight lang="lua">hour, min = getTime ()
<syntaxhighlight lang="lua">hour, min = getTime ()
serverChat ( "The current time is ", hour, ":", min )</syntaxhighlight>
serverChat ( "The current time is ", hour, ":", min )</syntaxhighlight>

Revision as of 02:37, 18 May 2006

Description

This function returns the current time as two ints (hour and minute).

Syntax

getTime ()

Example

hour, min = getTime ()
serverChat ( "The current time is ", hour, ":", min )