Registry / utility / juju-clock

juju-clock

JSON →
library1.1.1gogounverified

Package clock provides a clock interface and implementations for testing time-dependent code.

go get github.com/juju/clock
INSTALL
IMPORT
SIG · JUJU-CLOCK
J
juju-clock
utilitygov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clock
github.com/juju/clock

Gets the current time using the wall clock

package main import ( "fmt" "github.com/juju/clock" ) func main() { c := clock.WallClock fmt.Println(c.Now()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
juju-clock — go get juju-clock · libregistry