Skip to content

fractionalSecond

  • The core functions, which every industry uses.
const fractionalSecond: RegExp = /^[0-9]{1,9}$/;

RegExp matching 1–9 fractional-second digits (nanosecond precision).

import { fractionalSecond } from "@northguild/gmt";
fractionalSecond.test("123") // true (milliseconds)
fractionalSecond.test("123456789") // true (nanoseconds)
fractionalSecond.test("1234567890") // false (more than 9 digits)
fractionalSecond.test("") // false (empty)

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.