# CLOCK::_GET_POSIX_TIME_STRUCT

- **Hash:** `0x86A68E84E5884951`
- **Namespace:** CLOCK
- **Runtime name (Lua/JS):** `GetPosixTimeStruct`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CLOCK/_GET_POSIX_TIME_STRUCT

## Signature

```c
void _GET_POSIX_TIME_STRUCT(Any* outTime);
```

## Parameters

- `outTime` (`Any*`)

## Returns

`void`

## Description

Same as GET_POSIX_TIME except that it takes a single pointer to a struct.

## Usage

### Lua

```lua
local outTime = GetPosixTimeStruct(outTime)

-- always available, by hash
local outTime = Citizen.InvokeNative(0x86A68E84E5884951, Citizen.PointerValueIntInitialized(outTime))
```

### JavaScript

```js
const outTime = GetPosixTimeStruct(outTime);

// by hash
const outTime = Citizen.invokeNative('0x86A68E84E5884951', Citizen.pointerValueIntInitialized(outTime));
```

### C#

```csharp
var outTime = new OutputArgument();
Function.Call((Hash)0x86A68E84E5884951, outTime);
// outTime.GetResult<int>()
```

- 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.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
