MCPcopy Create free account
hub / github.com/crewjam/saml / clockNow

Function clockNow

util.go:40–45  ·  view source on GitHub ↗

clockNow returns the current time from clock or, if it is nil, from the deprecated package-level TimeNow.

(clock *dsig.Clock)

Source from the content-addressed store, hash-verified

38// clockNow returns the current time from clock or, if it is nil, from the
39// deprecated package-level TimeNow.
40func clockNow(clock *dsig.Clock) time.Time {
41 if clock != nil {
42 return clock.Now().UTC()
43 }
44 return TimeNow()
45}
46
47// dsigClockOrDefault returns clock or, if it is nil, the deprecated
48// package-level Clock (which may also be nil).

Callers 2

nowMethod · 0.70
nowMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected