BIS_fnc_calculateDateTime
Jump to navigation
Jump to search
Description
- Description:
- Returns the end datetime if an offset is passed, or the offset between start and end dates.
- Execution:
- call
- Groups:
- Environment
Syntax
- Syntax:
- [startDate, endDateOrOffset, timeUnit] call BIS_fnc_calculateDateTime
- Parameters:
- startDate: Array in Date format - (Optional, default date)
- endDateOrOffset: Array in Date format or Number - (Optional, default date) either the end date of the period to calculate, or time in seconds from startDate
- timeUnit: String - (Optional, default "s") one of:
- "s" - seconds
- "m" - minutes
- "h" - hours
- "d" - days
- Return Value:
- Date or Number
Examples
- Example 1:
Additional Information
- See also:
- date setDate BIS_fnc_setDate
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