Standard library / time
time.Duration
Signed elapsed nanoseconds, about 290 years in either direction. Not a calendar month or day. Expected stdout: '1h30m0s\n'.
Formal Syntax & Structure
go syntaxgo
type Duration int64Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { var d time.Duration = 90 * time.Minute; fmt.Println(d) }