BIS fnc sunriseSunsetTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - ";{{cc|" to "; {{cc|")
Line 15: Line 15:
| [[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).
| [[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).


|x1= <code>_sunriseSunsetTime = [[date]] [[call]] [[BIS_fnc_sunriseSunsetTime]];{{cc|// get sunrise/sunset time for the current date}}</code>
|x1= <code>_sunriseSunsetTime = [[date]] [[call]] [[BIS_fnc_sunriseSunsetTime]]; {{cc|// get sunrise/sunset time for the current date}}</code>


| [[sunOrMoon]]
| [[sunOrMoon]]

Revision as of 14:52, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Environment

Syntax

Syntax:
Syntax needed
Parameters:
Array - date in format [year,month,day,hour,minute], i.e., standard game date format
Return Value:
Return value needed

Examples

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

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