# isAfterUnix

Industry: Core

## Signature

```ts
isAfterUnix(value1: string | number, value2: string | number, options?: { epochUnit?: UnixUnit; }): boolean
```

Return whether `value1` represents an instant strictly after `value2`.

- Uses Temporal.Instant.compare to check ordering.
- Each value is a safe integer or a string of optionally negative ASCII digits; anything else is invalid.
- Returns false if either input is invalid.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value1` | `string` \| `number` | first unix epoch: a safe integer or a digit string |
| `value2` | `string` \| `number` | second unix epoch, in the same unit |

## Options

**options**

optional: how both epochs are read

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `epochUnit?` | `"seconds"` \| `"milliseconds"` \| `"second"` \| `"millisecond"` ([`UnixUnit`](/gmt/reference/types/UnixUnit/)) | `"milliseconds"` | The unit the epoch values are counted in: `"seconds"` or `"milliseconds"`, singular or plural. Any other value returns `false`. |

## Returns

`true` if `value1` is after `value2`, otherwise `false`

## Related types

- [`UnixUnit`](/gmt/reference/types/UnixUnit/)

## Examples

```ts
import { isAfterUnix } from "@northguild/gmt/unix/compare";

isAfterUnix(1706659200, 1704067200) // true
```

## Source

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