Skip to content

getUtcNow

getUtcNow(): string

Return the current UTC instant as an ISO Instant string.

  • Uses Temporal.Now.instant() to get current UTC time.

ISO Instant string (e.g. “2024-02-29T00:00:00Z”)

import { getUtcNow } from "@northguild/gmt/utc/get";
getUtcNow() // "2024-02-29T00:00:00Z"
output 

utc/get/getUtcNow.ts