{"hash":"0xAC97AF97FA68E5D5","ns":"NETWORK","name":"CONVERT_POSIX_TIME","slug":"CONVERT_POSIX_TIME","official":true,"named":true,"luaName":"ConvertPosixTime","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"posixTime","type":"int"},{"name":"timeStructure","type":"Any*"}],"summary":"Takes the specified time and writes it to the structure specified in the second argument.","descriptions":[{"source":"alloc8or","format":"text","body":"Takes the specified time and writes it to the structure specified in the second argument.\n\nstruct date_time\n{\n    int year;\n    int PADDING1;\n    int month;\n    int PADDING2;\n    int day;\n    int PADDING3;\n    int hour;\n    int PADDING4;\n    int minute;\n    int PADDING5;\n    int second;\n    int PADDING6;\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xAC97AF97FA68E5D5","gtaJhash":"0xBB7CCE49","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/NETWORK/CONVERT_POSIX_TIME","markdownUrl":"https://natives.borderlinerp.com/natives/NETWORK/CONVERT_POSIX_TIME.md","snippets":{"lua":"local timeStructure = ConvertPosixTime(posixTime, timeStructure)","luaInvoke":"local timeStructure = Citizen.InvokeNative(0xAC97AF97FA68E5D5, posixTime, Citizen.PointerValueIntInitialized(timeStructure))","js":"const timeStructure = ConvertPosixTime(posixTime, timeStructure);","jsInvoke":"const timeStructure = Citizen.invokeNative('0xAC97AF97FA68E5D5', posixTime, Citizen.pointerValueIntInitialized(timeStructure));","csharp":"var timeStructure = new OutputArgument();\nFunction.Call((Hash)0xAC97AF97FA68E5D5, posixTime, timeStructure);\n// timeStructure.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}