CONVERT_POSIX_TIME
Converts a POSIX timestamp into a date and time structure.
Signature
void CONVERT_POSIX_TIME(int posixTime, Any* timeStructure); // 0xAC97AF97FA68E5D5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | posixTime | int |
| 2 | timeStructure | Any* (out pointer) |
Facts
| Name | CONVERT_POSIX_TIME |
|---|---|
| Hash | 0xAC97AF97FA68E5D5 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local timeStructure = Citizen.InvokeNative(0xAC97AF97FA68E5D5, -- CONVERT_POSIX_TIME
0, -- int posixTime
Citizen.PointerValueInt() -- Any* timeStructure
)
print(timeStructure)const timeStructure = Citizen.invokeNative("0xAC97AF97FA68E5D5", // CONVERT_POSIX_TIME
0, // int posixTime
Citizen.pointerValueInt() // Any* timeStructure
);
console.log(timeStructure)var timeStructureArg = new OutputArgument();
Function.Call((Hash)0xAC97AF97FA68E5D5, // CONVERT_POSIX_TIME
0, // int posixTime
timeStructureArg // Any* timeStructure
);
int timeStructure = timeStructureArg.GetResult<int>();Related NETWORK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.