getUtcNow
Signature
Section titled “Signature”getUtcNow(): stringReturn the current UTC instant as an ISO Instant string.
- Uses Temporal.Now.instant() to get current UTC time.
Returns
Section titled “Returns”ISO Instant string (e.g. “2024-02-29T00:00:00Z”)
Examples
Section titled “Examples”import { getUtcNow } from "@northguild/gmt/utc/get";
getUtcNow() // "2024-02-29T00:00:00Z"