mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 09:51:47 -06:00
add hemtt support, major refactor
- no longer supports server events - can now more easily build using hemtt - extension vastly improved in both structure and functionality - tested on listen server - includes schema change
This commit is contained in:
24
addons/main/functions/fn_timestamp.sqf
Normal file
24
addons/main/functions/fn_timestamp.sqf
Normal file
@@ -0,0 +1,24 @@
|
||||
// (parseSimpleArray ("AttendanceTracker" callExtension "getTimestamp")) select 0;
|
||||
|
||||
// const time.RFC3339 untyped string = "2006-01-02T15:04:05Z07:00"
|
||||
|
||||
systemTimeUTC apply {if (_x < 10) then {"0" + str _x} else {str _x}} params [
|
||||
"_year",
|
||||
"_month",
|
||||
"_day",
|
||||
"_hour",
|
||||
"_minute",
|
||||
"_second",
|
||||
"_millisecond"
|
||||
];
|
||||
|
||||
format[
|
||||
"%1-%2-%3T%4:%5:%6Z",
|
||||
_year,
|
||||
_month,
|
||||
_day,
|
||||
_hour,
|
||||
_minute,
|
||||
_second
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user