time package
Canonical docs for durations, timers, tickers, deadlines, and monotonic time behavior.
Canonical docs for durations, timers, tickers, deadlines, and monotonic time behavior.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/time
What it covers
- duration constants and parsing
- timers and tickers
- deadlines and monotonic clocks
Why authoritative
Official package documentation for Go’s time APIs.
Use when
- how should I use time.Duration in Go
- what does time.After do
- how should timers be managed in Go
Keywords
- time package, time.Duration, timer, ticker, time.After