Soliders-in-Arms-Arma-3-Group / sia3f

MIT License
1 stars 0 forks source link

Replace usage of real_date extension with CBA_fnc_weekDay #56

Closed L-McKendrick closed 2 years ago

L-McKendrick commented 2 years ago

[systemTime] call CBA_fnc_weekDay; should return the current day of the week, eliminating the need to call the real date extension for the OCAP2 export.

See the functions viewer in order to find documentation on CBA_fnc_weekDay; if needed.

SiegeToaster commented 2 years ago

syntax should be

private _date = [systemTime] call CBA_fnc_weekDay;

_date is now

Day of the week (0: Sunday, 6: Saturday, -1: invalid)

CBA_fnc_weekDay.sqf