BIS fnc sunriseSunsetTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 2/7)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Calculate sunrise and sunset time. |= Description
| Calculate sunrise and sunset time. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [year,month,day,hour,minute] call [[BIS_fnc_sunriseSunsetTime]]; |= Syntax
| [year,month,day,hour,minute] call [[BIS_fnc_sunriseSunsetTime]]; |SYNTAX=


|p1= [[Array]]  - date in format [year,month,day,hour,minute], i.e., standard game date format|= Parameter 1
|p1= [[Array]]  - date in format [year,month,day,hour,minute], i.e., standard game date format|PARAMETER1=


| [[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). |= 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). |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 22: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


|  |= See also
|  |SEEALSO=


}}
}}

Revision as of 15:33, 7 April 2019


Hover & click on the images for description

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

Notes

Bottom Section