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