{"name":"BIS_fnc_sunriseSunsetTime","operator":null,"title":"BIS fnc sunriseSunsetTime","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sunriseSunsetTime","revid":327149,"updated":"2022-07-12T21:45:23Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.58"}],"since":{"game":"arma3","name":"Arma 3","version":"1.58"},"arma3_since":"1.58","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Calculate sunrise and sunset time.","syntaxes":[{"syntax":"date call BIS_fnc_sunriseSunsetTime","since":null,"effect":null,"exec":null,"params":[{"name":"date","type":"Array","optional":false,"default":null,"description":"date in format Date","types":["Array"],"since":null,"text":"date: Array  - date in format Date"}],"returns":{"type":"Array of Number","types":["Array","Number"],"description":"[sunriseTime, sunsetTime]. Returns special values when the world position is behind the polar cicle: [0,-1] - polar summer (i.e., no sunset), [-1,0] - polar winter (i.e., no sunrise).","text":"Array of Number - [sunriseTime, sunsetTime]. Returns special values when the world position is behind the polar cicle: [0,-1] - polar summer (i.e., no sunset), [-1,0] - polar winter (i.e., no sunrise)."}}],"examples":[{"text":"```sqf\nprivate _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; // get sunrise/sunset time for the current date\n```","code":["private _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; // get sunrise/sunset time for the current date"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["sunOrMoon"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Environment","Functions","Introduced with Arma 3 version 1.58"],"docblock":null,"filled_from_docblock":[]}