Skip to content

millisecond

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

Backward-compatible alias for fractionalSecond. Prefer fractionalSecond for new usage — the pattern matches 1–9 digits of fractional seconds, not just milliseconds.

import { millisecond } from "@northguild/gmt";
millisecond.test("123") // true
millisecond.test("123456789") // true (nanoseconds, despite the name)
millisecond.test("1234567890") // false (more than 9 digits)

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.