MCPcopy
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

30type 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

checkMethod · 0.65
TestJSONEmptyConfigFunction · 0.65
writeSequenceFunction · 0.65
TestNopCoreFunction · 0.65
NowMethod · 0.65
NewMockClockFunction · 0.65
TestSleepFunction · 0.65

Implementers 2

systemClockzapcore/clock.go
MockClockinternal/ztest/clock.go

Calls

no outgoing calls

Tested by 7

TestJSONEmptyConfigFunction · 0.52
writeSequenceFunction · 0.52
TestNopCoreFunction · 0.52
TestSleepFunction · 0.52