Skip to content

getNanosecond

  • The core functions, which every industry uses.
getNanosecond(): string

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.

current nanosecond string (zero-padded to 3 digits) or "" on invalid

import { getNanosecond } from "@northguild/gmt/plain/get";
getNanosecond() // "000"
output 

plain/get/getNanosecond.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.