time.Time.Add (method)
31 uses
time (current package)
sleep.go#L187: case c.(chan Time) <- Now().Add(Duration(-delta)):
time.go#L886: func (t Time) Add(d Duration) Time {
time.go#L921: case u.Add(d).Equal(t):
time.go#L1583: return t.Add(-r)
time.go#L1601: return t.Add(-r)
time.go#L1603: return t.Add(d - r)
context
context.go#L690: return WithDeadline(parent, time.Now().Add(timeout))
context.go#L697: return WithDeadlineCause(parent, time.Now().Add(timeout), cause)
crypto/tls
conn.go#L1469: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L899: session.useBy = uint64(c.config.time().Add(lifetime).Unix())
github.com/coinbase/cdp-sdk/go/auth
jwt.go#L161: "exp": now.Add(time.Duration(options.ExpiresIn) * time.Second).Unix(),
jwt.go#L201: "exp": now.Add(time.Duration(options.ExpiresIn) * time.Second).Unix(),
github.com/golang-jwt/jwt/v5
validator.go#L177: return errorIfFalse(cmp.Before((exp.Time).Add(+v.leeway)), ErrTokenExpired)
validator.go#L198: return errorIfFalse(!cmp.Before(iat.Add(-v.leeway)), ErrTokenUsedBeforeIssued)
validator.go#L219: return errorIfFalse(!cmp.Before(nbf.Add(-v.leeway)), ErrTokenNotValidYet)
net
dial.go#L201: earliest = now.Add(d.Timeout)
dial.go#L237: return now.Add(timeout), nil
dnsclient_unix.go#L181: ctx, cancel := context.WithDeadline(ctx, time.Now().Add(timeout))
dnsclient_unix.go#L401: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
hosts.go#L61: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L120: hosts.expire = now.Add(cacheMaxAge)
interface.go#L211: if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {
nss.go#L59: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
net/http
client.go#L194: return time.Now().Add(c.Timeout)
h2_bundle.go#L7649: sew.conn.SetWriteDeadline(time.Now().Add(sew.timeout))
server.go#L1030: hdrDeadline = t0.Add(d)
server.go#L1033: wholeReqDeadline = t0.Add(d)
server.go#L1038: c.rwc.SetWriteDeadline(time.Now().Add(d))
server.go#L1967: dl := time.Now().Add(tlsTO)
server.go#L2118: c.rwc.SetReadDeadline(time.Now().Add(d))
transport.go#L1118: oldTime = time.Now().Add(-t.IdleConnTimeout)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |