# isValidUnixMilliseconds

Industry: Core

## Signature

```ts
isValidUnixMilliseconds(timestamp: unknown): boolean
```

Return true when `timestamp` is a Unix milliseconds value every `unix/` function accepts.

- A number must be a safe integer; a string must be an optionally negative run of ASCII digits (`"1700000000000"`), with no whitespace, `+`, decimal point, exponent or hex.
- The instant must lie in the Temporal range: ±8.64e15 milliseconds (10^8 days) from the epoch.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `timestamp` | `unknown` | candidate value of any type |

## Returns

boolean indicating whether the timestamp is a valid Unix milliseconds value

## Examples

```ts
import { isValidUnixMilliseconds } from "@northguild/gmt/unix/validate";

isValidUnixMilliseconds(1700000000000) // true
```

## Source

[unix/validate/isValidUnixMilliseconds.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/unix/validate/isValidUnixMilliseconds.ts)
