From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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);


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


// todo

See also

Template:Time s function c