---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/context/thrift/contracts/interfaces/MillisTimestamp.md
description: >-
  Anything with a `.toMillis()` — the structural shape the battery needs from a
  timestamp field (a core `DateTime` satisfies this; so does a plain `{
  toMillis: () => number }` test double).
---

# Interface: MillisTimestamp

Defined in: [src/batteries/context/thrift/contracts.ts:94](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L94)

Anything with a `.toMillis()` — the structural shape the battery needs from a timestamp field
(a core `DateTime` satisfies this; so does a plain `{ toMillis: () => number }` test double).

## Methods

### toMillis()

```ts
toMillis(): number;
```

Defined in: [src/batteries/context/thrift/contracts.ts:96](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L96)

The instant this timestamp represents, as Unix epoch milliseconds.

#### Returns

`number`
