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