parseMinuteFromUnix
Signature
Section titled “Signature”parseMinuteFromUnix(value: string | number, options?: { epochUnit?: UnixUnit; timeZone?: string; }): stringimport { parseMinuteFromUnix } from "@northguild/gmt/unix/parse";Return the minute (0-59) from a unix epoch value.
- Delegates to {@link parseUnitFromUnix} with unit “minute”.
- Returns “” for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value |
string | number |
unix epoch in milliseconds or seconds (number or string) |
Options
Section titled “Options”options
| Option | Type | Default |
|---|---|---|
epochUnit? |
UnixUnit |
— |
timeZone? |
string |
— |
Returns
Section titled “Returns”Minute (00-59) or “” on invalid input
Related types
Section titled “Related types”Examples
Section titled “Examples”parseMinuteFromUnix(1700000000000) // "26"parseMinuteFromUnix(-86400, { epochUnit: "seconds" }) // "00"