getZonedMicrosecond
Signature
Section titled “Signature”getZonedMicrosecond(ianaTimezone: string): stringimport { getZonedMicrosecond } from "@northguild/gmt/zoned/get";Return the current microsecond for the specified IANA timeZone.
- Uses Temporal.Now.zonedDateTimeISO to get the current time.
- Validation is performed on the timezone.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
ianaTimezone |
string |
IANA timeZone identifier |
Returns
Section titled “Returns”current microsecond string (zero-padded to 3 digits) or “” on invalid input
Examples
Section titled “Examples”getZonedMicrosecond("America/New_York") // "000"getZonedMicrosecond("invalid") // ""