parseMillisecondFromZoned
Signature
Section titled “Signature”parseMillisecondFromZoned(value: string): stringimport { parseMillisecondFromZoned } from "@northguild/gmt/zoned/parse";Return the millisecond (0-999) from a zoned datetime string.
- Returns zero-padded string for millisecond.
- 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”Millisecond (000-999) or “” on invalid input
Examples
Section titled “Examples”parseMillisecondFromZoned("2024-03-15T14:30:45.123+00:00[UTC]") // "123"parseMillisecondFromZoned("invalid") // ""