Standard library / time
time.Hour
One hour equals 3600000000000 nanoseconds. Multiply an integer converted to Duration by this unit; check overflow for large inputs. Expected stdout: '3600000000000\n'.
Formal Syntax & Structure
go syntaxgo
const Hour Duration = 3600000000000Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.Hour.Nanoseconds()) }