Skip to content

getUtcMicrosecond

getUtcMicrosecond(): string

Return the current microsecond from UTC as a zero-padded string.

  • Uses Temporal.Now.instant() converted to UTC zoned date time.
  • Returns zero-padded string to 3 digits.

current microsecond string (zero-padded to 3 digits)

import { getUtcMicrosecond } from "@northguild/gmt/utc/get";
getUtcMicrosecond() // "456"
output 

utc/get/getUtcMicrosecond.ts