BIS fnc sunriseSunsetTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
||
Line 5: | Line 5: | ||
| arma3 |Game name= | | arma3 |Game name= | ||
|1.58| | |1.58|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 00:31, 31 August 2019
Description
- Description:
- Calculate sunrise and sunset time.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [year,month,day,hour,minute] call BIS_fnc_sunriseSunsetTime;
- Parameters:
- Array - date in format [year,month,day,hour,minute], i.e., standard game date format
- Return Value:
- Array in format [<sunriseTime:number>,<sunsetTime:number>]. 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:
// get sunrise/sunset time for the current date sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime;
Additional Information
- See also:
- See also needed
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