# Eta

Estimated time of arrival as timestamp: seconds since 00:00:00 UTC on 1 January 1970

f.e: 1681839329567

{% tabs %}
{% tab title="Typescript" %}

```typescript
const onEtaChange = (value: number, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.navigationService.eta.subscribe(onEtaChange);
COBI.navigationService.eta.unsubscribe(onEtaChange);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const onEtaChange = (value, timestamp) => {
    console.log(value, timestamp);
};

COBI.navigationService.eta.subscribe(onEtaChange);
COBI.navigationService.eta.unsubscribe(onEtaChange);
```

{% endtab %}
{% endtabs %}
