Skip to content

getMillisecond

getMillisecond(): string

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

import { getMillisecond } from "@northguild/gmt/plain/get";
getMillisecond() // "000"
output 

plain/get/getMillisecond.ts