{"name":"BIS_fnc_sunriseSunsetTime","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","games":{"arma3":"1.58"},"since":"arma3 1.58","arma3_since":"1.58","description":"Calculate sunrise and sunset time.","syntaxes":[{"syntax":"date call BIS_fnc_sunriseSunsetTime","params":[{"name":"date","type":"Array","description":"date in format Date","type_expr":"Array"}],"returns":{"type":"Array of Number","type_expr":"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)."}}],"examples":[{"code":["private _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; // get sunrise/sunset time for the current date"]}],"see_also":["sunOrMoon"]}