clockNow returns the current time from clock or, if it is nil, from the deprecated package-level TimeNow.
(clock *dsig.Clock)
| 38 | // clockNow returns the current time from clock or, if it is nil, from the |
| 39 | // deprecated package-level TimeNow. |
| 40 | func 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). |