GetTime: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== | ||
This function returns the current | This function returns the current time as two ints (hour and minute). | ||
==Syntax== | ==Syntax== | ||
int int [[ | int int [[getTime]] () | ||
==Example== | ==Example== | ||
hour, min = [[getTime]] () | |||
[[serverChat]] ( "The current | [[serverChat]] ( "The current time is ", hour, ":", min ) |
Revision as of 02:37, 1 April 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 )