BIS_fnc_sunriseSunsetTime

From Bohemia Interactive Community
Revision as of 23:45, 12 July 2022 by Lou Montana (talk | contribs) (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Calculate sunrise and sunset time.
Execution:
call
Groups:
Environment

Syntax

Syntax:
date call BIS_fnc_sunriseSunsetTime
Parameters:
date: Array - date in format Date
Return Value:
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

Example 1:
private _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; // get sunrise/sunset time for the current date

Additional Information

See also:
sunOrMoon

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note