{"name":"BIS_fnc_setDate","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Instantly set date and share it across network with optional transition effect.","syntaxes":[{"syntax":"[value, global, transition] call BIS_fnc_setDate","params":[{"name":"value","type":"Number or Array in format Date","description":"Number or Array in format Date\n\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","type_expr":"Number | Date","types":["Number","Array","Date"],"text":"value: Number or Array in format Date\n\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","type_expr":"Boolean","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","type_expr":"Boolean","text":"transition: Boolean (Optional, default false) true to show a transition effect instead of an immediate skip"}],"returns":{"type":"Date","type_expr":"Date","description":"the new date"}}],"examples":[{"code":["[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;"]},{"code":["[4, true, true] call BIS_fnc_setDate; // skip 4 hours. Same as image in description"]},{"code":["[30 / 60, true, true] call BIS_fnc_setDate; // skip 30 minutes and show a \"30 minutes later\" message"]}],"see_also":["date","setDate","skipTime"]}