getZonedNanosecond
Signature
Section titled “Signature”getZonedNanosecond(ianaTimezone: string): stringimport { getZonedNanosecond } from "@northguild/gmt/zoned/get";Return the current nanosecond 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 nanosecond string (zero-padded to 3 digits) or “” on invalid input
Examples
Section titled “Examples”getZonedNanosecond("America/New_York") // "000"getZonedNanosecond("invalid") // ""