Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/zap
/ Now
Method
Now
zapcore/clock.go:32–32 ·
view source on GitHub ↗
Now returns the current local time.
()
Source
from the content-addressed store, hash-verified
30
type
Clock
interface
{
31
// Now returns the current local time.
32
Now() time.Time
33
34
// NewTicker returns *time.Ticker that holds a channel
35
// that delivers "ticks" of a clock.
Callers
10
check
Method · 0.65
TestJSONEmptyConfig
Function · 0.65
TestJSONCustomReflectedEncoder
Function · 0.65
TestCheckedEntryIllegalReuse
Function · 0.65
writeSequence
Function · 0.65
TestSamplerWithZeroThereafter
Function · 0.65
TestNopCore
Function · 0.65
Now
Method · 0.65
NewMockClock
Function · 0.65
TestSleep
Function · 0.65
Implementers
2
systemClock
zapcore/clock.go
MockClock
internal/ztest/clock.go
Calls
no outgoing calls
Tested by
7
TestJSONEmptyConfig
Function · 0.52
TestJSONCustomReflectedEncoder
Function · 0.52
TestCheckedEntryIllegalReuse
Function · 0.52
writeSequence
Function · 0.52
TestSamplerWithZeroThereafter
Function · 0.52
TestNopCore
Function · 0.52
TestSleep
Function · 0.52