parseMicrosecondFromTime
Signature
Section titled “Signature”parseMicrosecondFromTime(value: string): stringimport { parseMicrosecondFromTime } from "@northguild/gmt/plain/parse";Return the microsecond (0-999) for a given ISO 8601 time string.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value |
string |
ISO time string |
Returns
Section titled “Returns”Microsecond (000-999) or “” on invalid input
Examples
Section titled “Examples”parseMicrosecondFromTime("12:30:45.123") // "123"parseMicrosecondFromTime("12:30:45.000") // "000"parseMicrosecondFromTime("invalid") // ""