Skip to content

second

  • The core functions, which every industry uses.
const second: RegExp = /^[0-5][0-9]$/;

RegExp matching a second of 00–59.

import { second } from "@northguild/gmt";
second.test("00") // true
second.test("30") // true
second.test("59") // true
second.test("60") // false (a leap second; GMT rejects it, see `leapSecond`)

regex/time.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.