BIS fnc sunriseSunsetTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1// $2</code>") |
||
Line 14: | Line 14: | ||
|r1= [[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). | |r1= [[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). | ||
|x1= <code>private _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; | |x1= <code>private _sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime; // get sunrise/sunset time for the current date</code> | ||
|seealso= [[sunOrMoon]] | |seealso= [[sunOrMoon]] | ||
}} | }} |
Revision as of 22:23, 12 July 2022
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