getNow
Playground
call
result
Signature
Section titled “Signature”getNow(): stringimport { getNow } from "@northguild/gmt/plain/get";Return the current local PlainDateTime as an ISO string using the system timeZone.
- Uses Temporal.Now.zonedDateTimeISO to get current time in system timezone.
- Returns “” when system timezone is unavailable.
Returns
Section titled “Returns”ISO 8601 PlainDateTime string or “” on error
Examples
Section titled “Examples”getNow() // "2024-03-15T14:30:45" (current time)