Arma 3 Scripting

BIS_fnc_calculateDateTime

  • Arma 3 v1.86

Function · Markdown · JSON · original wiki page

Description

Returns the end datetime if an offset is passed, or the offset between start and end dates.

Syntax

[startDate, endDateOrOffset, timeUnit] call BIS_fnc_calculateDateTime

Parameters:

Returns: Date or Number

Examples

Example 1

[date, 3600] call BIS_fnc_calculateDateTime;                                // returns date in 3600 seconds (60min, 1h)
[date, 60, "m"] call BIS_fnc_calculateDateTime;                                // returns date in 60 minutes (1h)
[[2035,8,28,11,55], [2035,8,29,11,55], "h"] call BIS_fnc_calculateDateTime;    // returns 24

See also

date · setDate · BIS_fnc_setDate