{"name":"serverTime","operator":null,"title":"serverTime","type":"command","url":"https://community.bistudio.com/wiki/serverTime","revid":364976,"updated":"2024-07-04T17:33:25Z","groups":["Time","Mission Information","Multiplayer"],"status":"ok","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"global","server_exec":false},"exec":null,"description":"Returns the time since latest server (re)start in seconds.\n\n> [!IMPORTANT]\n> The time returned is different to the time returned by time and diag_tickTime commands on server.\n\n> [!NOTE]\n> Known issues before Arma 3 v1.86:\n> both server and clients showed the same value when synced, but the only time it was not synced was on the server, right after server restart and only for the first 300 seconds. Client-side it was synced from the start.","syntaxes":[{"syntax":"serverTime","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\nhint format [\"Synced server time : %1\", serverTime];\n```","code":["hint format [\"Synced server time : %1\", serverTime];"]}],"multiplayer":"- In singleplayer: Arma 3 v2.18 returns the same value as diag_tickTime, the time since game launch (returned 0 before v2.18)\n- In multiplayer: It is synced to all clients both at mission start and when a new client connects to it, and every 5 minutes. Synchronisation can be forced by executing the estimatedTimeLeft command.","problems":null,"aliases":[],"see_also":["time","diag_tickTime","date","missionStart","estimatedTimeLeft","estimatedEndServerTime","systemTime","systemTimeUTC"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Mission Information","Command Group: Multiplayer","Command Group: Time","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}