BIS fnc calculateDateTime – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(Initial Export)
 
No edit summary
Line 4: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.86|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:16, 8 December 2018

Hover & click on the images for description

Description

Description:
<pre> /************************************************************ Calculate Date Parameters: [start datetime, time offset (in seconds) or end datetime, time unit] time unit: - "s" (default) - seconds - "m" - minutes - "h" - hours - "d" - days Returns the new datetime if offset is passed or difference between dates if end datetime is passed (in seconds) Example: [date, 3600] call BIS_fnc_CalculateDateTime Example: [date, 60, "m"] call BIS_fnc_CalculateDateTime Example: [date, [2035,8,29,11,55], "h"] call BIS_fnc_CalculateDateTime
                                                                                                                        • /
  1. define TIME_FLOAT_CONVERT_DAYS 365
  2. define TIME_FLOAT_CONVERT_HOURS 8760
  3. define TIME_FLOAT_CONVERT_MINUTES 525600
  4. define TIME_FLOAT_CONVERT_SECONDS 31536000
</pre><small>(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)</small>
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
<!-- [] call BIS_fnc_CalculateDateTime; -->
Return Value:
Return value needed

Examples

Example 1:
<code></code>

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

<h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN -->

<!-- Note Section END --> </dl>

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