{"name":"time","operator":null,"title":"time","type":"command","url":"https://community.bistudio.com/wiki/time","revid":370500,"updated":"2024-12-26T17:48:11Z","groups":["Time","Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns time elapsed since mission started (in seconds). The value is different on each client. If you need unified time, use serverTime. Unlike uiTime the time stops when game is paused.","syntaxes":[{"syntax":"time","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nprivate _future = time + 30;\nwaitUntil { time >= _future };  // continue after 30 seconds\n```","code":["private _future = time + 30;\nwaitUntil { time >= _future };  // continue after 30 seconds"]},{"text":"Wait until mission fully started:\n\n```sqf\nwaitUntil { time > 0 };\n```","code":["waitUntil { time > 0 };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["uiTime","sleep","date","dayTime","serverTime","skipTime","accTime","dateToNumber","timeMultiplier","setTimeMultiplier","missionStart","diag_tickTime","diag_deltaTime","systemTime","systemTimeUTC","BIS_fnc_timeToString"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Mission Information","Command Group: Time","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}