BIS fnc setDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Instantly set date and share it across network. |= Description
____________________________________________________________________________________________
 
| [date, global, transition] call [[BIS_fnc_setDate]] |= Syntax


Description:
|p1= date: [[Number]] or [[Array]]
Instantly set date and share it across network.
* [[Number]] - number of hours to skip
* [[Array]] date in format [yyyy, mm, dd, hh, mm] (see [[date]] and [[setDate]]) |= Parameter 1


Parameter(s):
|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution |= Parameter 2
0:
ARRAY - date in format [Y,M,D,H,M]
NUMBER - hours to skip
1: BOOL - true for global execution (default: true)
2 (Optional): BOOL - true to show a transition effect instead of immediate skip (default: false)
Returns:
ARRAY
*/


#define VALUEVAR "bis_fnc_setdate_value"
|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip |= Parameter 3


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Array]] - the new date |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setDate]]; --> |= Syntax
|x1= <code><nowiki>[</nowiki>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> |= Example 1


|p1= |= Parameter 1
|x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> |= Example 2
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=
| [[date]], [[setDate]], [[skipTime]] |= See also
____________________________________________________________________________________________
 
| |= See also
 
}}
}}



Revision as of 14:20, 7 May 2018

Hover & click on the images for description

Description

Description:
Instantly set date and share it across network.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[date, global, transition] call BIS_fnc_setDate
Parameters:
date: Number or Array
global: Boolean - (Optional, default true) true for global execution
transition: Boolean (Optional, default false) true to show a transition effect instead of an immediate skip
Return Value:
Array - the new date

Examples

Example 1:
[[2035, 12, 31, 23, 59], true, true] call BIS_fnc_setDate;
Example 2:
[3.5] call BIS_fnc_setDate;

Additional Information

See also:
datesetDateskipTime

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