parseMillisecondFromTime
Signature
Section titled “Signature”parseMillisecondFromTime(value: string): stringReturn the millisecond (0-999) for a given ISO 8601 time string.
- Returns zero-padded string for millisecond.
- Returns "" for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO time string |
Returns
Section titled “Returns”Millisecond (000-999) or "" on invalid input
Examples
Section titled “Examples”import { parseMillisecondFromTime } from "@northguild/gmt/plain/parse";
parseMillisecondFromTime("12:30:45.123") // "123"