BIS fnc sunriseSunsetTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with " {{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.58|= Game version _______________...")
Line 5: Line 5:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.58|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Calculate sunrise and sunset time. |= Description
Author: Karel Moricky, modified by Killzone_Kid
____________________________________________________________________________________________


Description:
| [year,month,day,hour,minute] call [[BIS_fnc_sunriseSunsetTime]]; |= Syntax
Calculate sunrise and sunset time.
 
Parameter(s):
ARRAY  - date in format [year,month,day,hour,minute], i.e., standard game date format
 
Returns:
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)
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_sunriseSunsetTime]]; --> |= Syntax
|p1= [[Array]] - date in format [year,month,day,hour,minute], i.e., standard game date format|= Parameter 1
|p1= |= Parameter 1


| |= 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). |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>// get sunrise/sunset time for the current date
sunriseSunsetTime = date call BIS_fnc_sunriseSunsetTime;</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |= See also


}}
}}
Line 48: Line 34:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:sunriseSunsetTime}}]]
[[Category:Functions|{{uc:sunriseSunsetTime}}]]
[[Category:Functions|{{uc:sunriseSunsetTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:sunriseSunsetTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:sunriseSunsetTime}}]]

Revision as of 19:58, 15 June 2016


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