Time::getLocalTime: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
Line 18: Line 18:
{{Time_s_function_c}}
{{Time_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Time API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:23, 11 May 2017

Gets local system time as year, month, day, hour, minute and second.

Example usage:

int year;
int month;
int day;
int hour;
int minute;
int second;
or use std::tm struct

TIME::GET_LOCAL_TIME(&year, &month, &day, &hour, &minute, &second);

Syntax

mp.game.time.getLocalTime(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

See also

Template:Time s function c