Standard library / time
time.Now()
Read the current local wall time with a monotonic reading when available. Do not expect fixed output from a real clock. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func Now() TimeReturn Value
Time
Read the current local wall time with a monotonic reading when available.
Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(!time.Now().IsZero()) }