Skip to content

getSecond

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

Return the current second using the system timeZone.

  • Uses Temporal.Now.plainDateTimeISO() to get current second in system timezone.
  • Returns zero-padded string (e.g., “45”).
  • Returns "" when system timezone is unavailable.

current second string (zero-padded) or "" on invalid

import { getSecond } from "@northguild/gmt/plain/get";
getSecond() // "00"
output 

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