get_game_time([seconds])

Parameters:
seconds (float, optional) number of seconds to add to the returned time (defaults to 0)
 
Returns:
(table of integers) table with the current game calender time

Description:
Get the current game calender time.

Example:

   local game_time = get_game_time()
   local year = game_time.year
   local month = game_time.month -- 0 to 11
   local day = game_time.day -- 0 to 6
   local hours = game_time.hours -- 0 to 23
   local minutes = game_time.minutes -- 0 to 59
   local seconds = game_time.seconds -- 0 to 59

Gets the current game calender time and extracts all the components into local variables.

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15