isAfterUnix
Signature
Section titled “Signature”isAfterUnix(value1: number, value2: number, options?: { epochUnit?: UnixUnit; }): booleanimport { isAfterUnix } from "@northguild/gmt/unix/compare";Return whether value1 represents an instant strictly after value2.
- Uses Temporal.Instant.compare to check ordering.
- Returns false if either input is invalid.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value1 |
number |
first unix epoch value |
value2 |
number |
second unix epoch value |
Options
Section titled “Options”options
| Option | Type | Default |
|---|---|---|
epochUnit? |
UnixUnit |
— |
Returns
Section titled “Returns”true if value1 is after value2, otherwise false
Related types
Section titled “Related types”Examples
Section titled “Examples”isAfterUnix(1706659200, 1704067200) // trueisAfterUnix(1706659200, 1706659200) // falseisAfterUnix(-1, 0) // false