The Lab
NETWORK native

CONVERT_POSIX_TIME

returns void2 paramsbuild 1207

Converts a POSIX timestamp into a date and time structure.

Signature

C
void CONVERT_POSIX_TIME(int posixTime, Any* timeStructure); // 0xAC97AF97FA68E5D5 b1207

Parameters

#NameType
1posixTimeint
2timeStructureAny* (out pointer)

Facts

Facts about CONVERT_POSIX_TIME
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.

Lua
local timeStructure = Citizen.InvokeNative(0xAC97AF97FA68E5D5, -- CONVERT_POSIX_TIME
  0, -- int posixTime
  Citizen.PointerValueInt() -- Any* timeStructure
)
print(timeStructure)
JavaScript
const timeStructure = Citizen.invokeNative("0xAC97AF97FA68E5D5", // CONVERT_POSIX_TIME
  0, // int posixTime
  Citizen.pointerValueInt() // Any* timeStructure
);
console.log(timeStructure)
C#
var timeStructureArg = new OutputArgument();
Function.Call((Hash)0xAC97AF97FA68E5D5, // CONVERT_POSIX_TIME
  0, // int posixTime
  timeStructureArg // Any* timeStructure
);
int timeStructure = timeStructureArg.GetResult<int>();
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.