parseSecondFromZoned
Signature
Section titled “Signature”parseSecondFromZoned(value: string): stringimport { parseSecondFromZoned } from "@northguild/gmt/zoned/parse";Return the second (0-59) from a zoned datetime string.
- Returns zero-padded string for second.
- Returns “” for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value |
string |
ISO zoned datetime string (e.g., “2024-03-15T14:30:45.123+00:00[UTC]”) |
Returns
Section titled “Returns”Second (00-59) or “” on invalid input
Examples
Section titled “Examples”parseSecondFromZoned("2024-03-15T14:30:45+00:00[UTC]") // "45"parseSecondFromZoned("invalid") // ""