getNanosecond
Signature
Section titled “Signature”getNanosecond(): stringimport { getNanosecond } from "@northguild/gmt/plain/get";Return 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”getNanosecond() // "000"getNanosecond() // "" (when system timeZone unavailable)