GetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
==Description==
This function returns the current time as two ints (hour and minute).
Returns the current time as two integers (hour and minute).


==Syntax==
==Syntax==

Revision as of 06:50, 18 May 2006

Description

Returns the current time as two integers (hour and minute).

Syntax

getTime ()

Example

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