Skip to content

getMillisecond

getMillisecond(): string
import { getMillisecond } from "@northguild/gmt/plain/get";

Return the current millisecond using the system timeZone.

  • Uses Temporal.Now.plainDateTimeISO to get current millisecond in system timezone.
  • Returns zero-padded string to 3 digits (e.g., “123”).
  • Returns “” when system timezone is unavailable.

current millisecond string (zero-padded to 3 digits) or “” on invalid

getMillisecond() // "000"
getMillisecond() // "" (when system timeZone unavailable)

plain/get/getMillisecond.ts