Time::getLocalTimeGmt: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
console hash: 0xC589CD7D = GET_UTC_TIME<br>gets current UTC time | console hash: 0xC589CD7D = GET_UTC_TIME<br>gets current UTC time | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">time.getLocalTimeGmt(year, month, day, hour, minute, second);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.time.getLocalTimeGmt(year, month, day, hour, minute, second);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''year:''' int | *'''year:''' int | ||
| Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Time_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:33, 6 May 2017
console hash: 0xC589CD7D = GET_UTC_TIME
gets current UTC time
Syntax
mp.game.time.getLocalTimeGmt(year, month, day, hour, minute, second);
Required Arguments
- year: int
- month: int
- day: int
- hour: int
- minute: int
- second: int
Return value
- object: year, month, day, hour, minute, second
Example
// todo