Skip to content

getNow

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

Return the current local PlainDateTime as an ISO string using the system timeZone.

  • Uses Temporal.Now.zonedDateTimeISO() to get current time in system timezone.
  • Returns "" when system timezone is unavailable.

ISO 8601 PlainDateTime string or "" on error

import { getNow } from "@northguild/gmt/plain/get";
getNow() // "2024-03-15T14:30:45" (current time)
output 

plain/get/getNow.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.