{"name":"BIS_fnc_setDate","operator":null,"title":"BIS fnc setDate","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_setDate","revid":341320,"updated":"2023-05-21T15:53:15Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Instantly set date and share it across network with optional transition effect.","syntaxes":[{"syntax":"[value, global, transition] call BIS_fnc_setDate","since":null,"effect":null,"exec":null,"params":[{"name":"value","type":"Number or Array in format Date","optional":false,"default":null,"description":"Number or Array in format Date\n- Number - hours to skip. To show exactly *30 minutes later* put `30 / 60`; `0.5` will show `29 minutes later`\n- Array in format Date - date","types":["Number","Array","Date"],"since":null,"text":"value: Number or Array in format Date\n- Number - hours to skip. To show exactly *30 minutes later* put `30 / 60`; `0.5` will show `29 minutes later`\n- Array in format Date - date"},{"name":"global","type":"Boolean","optional":true,"default":"true","description":"true for global execution","types":["Boolean"],"since":null,"text":"global: Boolean - (Optional, default true) true for global execution"},{"name":"transition","type":"Boolean","optional":true,"default":"false","description":"true to show a transition effect instead of an immediate skip","types":["Boolean"],"since":null,"text":"transition: Boolean (Optional, default false) true to show a transition effect instead of an immediate skip"}],"returns":{"type":"Date","types":["Date"],"description":"the new date","text":"Date - the new date"}}],"examples":[{"text":"```sqf\n[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;\n```","code":["[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;"]},{"text":"```sqf\n[4, true, true] call BIS_fnc_setDate; // skip 4 hours. Same as image in description\n```","code":["[4, true, true] call BIS_fnc_setDate; // skip 4 hours. Same as image in description"]},{"text":"```sqf\n[30 / 60, true, true] call BIS_fnc_setDate; // skip 30 minutes and show a \"30 minutes later\" message\n```","code":["[30 / 60, true, true] call BIS_fnc_setDate; // skip 30 minutes and show a \"30 minutes later\" message"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["date","setDate","skipTime"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Environment","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}