BIS fnc setDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Environment |GROUP1=
|gr1 = Environment


| Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|left|400px]] |DESCRIPTION=
| Instantly set date and share it across network with optional transition effect. [[File:BIS_fnc_setDate.jpg|left|400px]]


| [date, global, transition] call [[BIS_fnc_setDate]] |SYNTAX=
| [date, global, transition] call [[BIS_fnc_setDate]]


|p1= date: [[Number]] or [[Date]]
|p1= date: [[Number]] or [[Date]]
* [[Number]] - number of hours to skip
* [[Number]] - number of hours to skip
* [[Date]] - date in format [year, month, day, hour, minute] |PARAMETER1=
* [[Date]] - date in format [year, month, day, hour, minute]


|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution |PARAMETER2=
|p2= global: [[Boolean]] - (Optional, default [[true]]) [[true]] for global execution


|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip |PARAMETER3=
|p3= transition: [[Boolean]] (Optional, default [[false]]) [[true]] to show a transition effect instead of an immediate skip


| [[Date]] - the new date |RETURNVALUE=
| [[Date]] - the new date


|x1= <code>[<nowiki/>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code> |EXAMPLE1=
|x1= <code>[<nowiki/>[2035, 12, 31, 23, 59], [[true]], [[true]]] [[call]] [[BIS_fnc_setDate]];</code>


|x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code> |EXAMPLE2=
|x2= <code>[3.5] [[call]] [[BIS_fnc_setDate]];</code>


| [[date]], [[setDate]], [[skipTime]] |SEEALSO=
| [[date]], [[setDate]], [[skipTime]]
}}
}}


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>

Revision as of 23:48, 17 January 2021

Hover & click on the images for description

Description

Description:
Instantly set date and share it across network with optional transition effect.
BIS fnc setDate.jpg
Execution:
call
Groups:
Environment

Syntax

Syntax:
[date, global, transition] call BIS_fnc_setDate
Parameters:
date: Number or Date
  • Number - number of hours to skip
  • Date - date in format [year, month, day, hour, minute]
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:
Date - 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

Bottom Section