[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp) › isTimestampBeyondMaxDrift

```ts
function isTimestampBeyondMaxDrift(
  deps: TimestampConfigDep,
): (
  millis: number &
    Brand<"NonNaN"> &
    Brand<"Finite"> &
    Brand<"Int"> &
    Brand<"NonNegative"> &
    Brand<"LessThan281474976710655"> &
    Brand<"Millis">,
  now: number &
    Brand<"NonNaN"> &
    Brand<"Finite"> &
    Brand<"Int"> &
    Brand<"NonNegative"> &
    Brand<"LessThan281474976710655"> &
    Brand<"Millis">,
) => boolean;
```

Defined in: [packages/common/src/local-first/Timestamp.ts:618](https://github.com/evoluhq/evolu/blob/ecbac001e0c18bbc45b44715f49ecc3a768c5ec9/packages/common/src/local-first/Timestamp.ts#L618)

Whether timestamp milliseconds exceed [TimestampConfig.maxDrift](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampConfig#maxdrift) ahead
of the supplied reference time. The exact limit and past timestamps are
accepted.

### Example

```ts

const isBeyondMaxDrift = isTimestampBeyondMaxDrift({
  timestampConfig: { maxDrift: 10 },
});
const now = Millis.orThrow(100);
assertFalse(isBeyondMaxDrift(Millis.orThrow(110), now));
assertTrue(isBeyondMaxDrift(Millis.orThrow(111), now));
```