Standard library / time

time.Minute

One minute equals 60000000000 nanoseconds. Multiply an integer converted to Duration by this unit; check overflow for large inputs. Expected stdout: '60000000000\n'.

Formal Syntax & Structure

go syntaxgo
const Minute Duration = 60000000000

Working Example

Example Snippetgo
package main
import (  "fmt"  "time")
func main() { fmt.Println(time.Minute.Nanoseconds()) }
Go Reference