getNanosecond
Signature
Section titled “Signature”getNanosecond(): stringReturn the current nanosecond using the system timeZone.
- Uses Temporal.Now.plainDateTimeISO to get current nanosecond in system timezone.
- Returns zero-padded string to 3 digits (e.g., “789”).
- Returns "" when system timezone is unavailable.
Returns
Section titled “Returns”current nanosecond string (zero-padded to 3 digits) or "" on invalid
Examples
Section titled “Examples”import { getNanosecond } from "@northguild/gmt/plain/get";
getNanosecond() // "000"