time.Time.Add (method)

73 uses

	time (current package)
		time.go#L813: func (t Time) Add(d Duration) Time {
		time.go#L857: 	case u.Add(d).Equal(t):
		time.go#L1409: 	return t.Add(-r)
		time.go#L1427: 		return t.Add(-r)
		time.go#L1429: 	return t.Add(d - r)

	cloud.google.com/go/storage
		storage.go#L505: 		cutoff := now.Add(604801 * time.Second) // 7 days + 1 second

	context
		context.go#L503: 	return WithDeadline(parent, time.Now().Add(timeout))

	crypto/tls
		conn.go#L1360: 		c.SetWriteDeadline(time.Now().Add(time.Second * 5))
		handshake_client_tls13.go#L675: 		useBy:              c.config.time().Add(lifetime),

	database/sql
		sql.go#L488: 	return dc.createdAt.Add(timeout).Before(nowFunc())
		sql.go#L1034: 		expiredSince := nowFunc().Add(-db.maxLifetime)
		sql.go#L1050: 		expiredSince := nowFunc().Add(-db.maxIdleTime)

	github.com/aws/aws-sdk-go/aws/corehandlers
		handlers.go#L77: 		if signedTime.Add(5 * time.Minute).After(time.Now()) {

	github.com/aws/aws-sdk-go/aws/credentials
		credentials.go#L178: 		e.expiration = e.expiration.Add(-window)

	github.com/aws/aws-sdk-go/aws/ec2metadata
		token_provider.go#L76: 	newToken.SetExpiration(time.Now().Add(output.TTL), ttlExpirationWindow)

	github.com/go-redis/redis/v8/internal/pool
		conn.go#L111: 		tm = tm.Add(timeout)

	github.com/google/go-cmp/cmp/cmpopts
		equate.go#L122: 	return !x.Add(a.margin).Before(y)

	github.com/jackc/pgconn
		pgconn.go#L586: 		deadline := time.Now().Add(time.Second * 15)

	github.com/lib/pq
		conn.go#L349: 		deadline := time.Now().Add(duration)
		notify.go#L773: 		nextReconnect = time.Now().Add(reconnectInterval)

	github.com/prometheus/client_golang/prometheus
		summary.go#L229: 	s.headStreamExpTime = time.Now().Add(s.streamDuration)
		summary.go#L356: 		s.headStreamExpTime = s.headStreamExpTime.Add(s.streamDuration)
		summary.go#L381: 		s.hotBufExpTime = s.hotBufExpTime.Add(s.streamDuration)

	github.com/sergi/go-diff/diffmatchpatch
		diff.go#L93: 		deadline = time.Now().Add(dmp.DiffTimeout)

	go.opencensus.io/internal
		internal.go#L36: 	return start.Add(time.Since(start))

	go.opencensus.io/trace
		spanbucket.go#L59: 	b.nextTime = s.EndTime.Add(samplePeriod)

	golang.org/x/crypto/openpgp/packet
		signature.go#L463: 	expiry := sig.CreationTime.Add(time.Duration(*sig.KeyLifetimeSecs) * time.Second)

	golang.org/x/crypto/ssh/agent
		keyring.go#L174: 		t := time.Now().Add(time.Duration(key.LifetimeSecs) * time.Second)

	golang.org/x/net/context
		go17.go#L63: 	return WithDeadline(parent, time.Now().Add(timeout))

	golang.org/x/net/internal/timeseries
		timeseries.go#L188: 	} else if t.After(ts.pendingTime.Add(-1 * smallBucketDuration)) {
		timeseries.go#L237: 		if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) {
		timeseries.go#L245: 			level.end = level.end.Add(level.size)
		timeseries.go#L340: 	return ts.Range(now.Add(-delta), now)
		timeseries.go#L368: 		if !start.Before(l.end.Add(-l.size * time.Duration(ts.numBuckets))) {
		timeseries.go#L389: 	return ts.ComputeRange(now.Add(-delta), now, num)
		timeseries.go#L400: 	srcStart := l.end.Add(-srcInterval * time.Duration(ts.numBuckets))
		timeseries.go#L408: 		srcStart = srcStart.Add(time.Duration(advance) * srcInterval)
		timeseries.go#L418: 		dstEnd := dstStart.Add(dstInterval)
		timeseries.go#L420: 			srcEnd := srcStart.Add(srcInterval)
		timeseries.go#L452: 			srcStart = srcStart.Add(srcInterval)
		timeseries.go#L454: 		dstStart = dstStart.Add(dstInterval)

	golang.org/x/oauth2
		token.go#L130: 	return t.Expiry.Round(0).Add(-expiryDelta).Before(timeNow())

	golang.org/x/oauth2/google
		google.go#L200: 		Expiry:      time.Now().Add(time.Duration(res.ExpiresInSec) * time.Second),
		jwt.go#L56: 	exp := iat.Add(time.Hour)

	golang.org/x/oauth2/internal
		token.go#L70: 		return time.Now().Add(time.Duration(v) * time.Second)
		token.go#L265: 			token.Expiry = time.Now().Add(time.Duration(expires) * time.Second)

	golang.org/x/oauth2/jws
		jws.go#L58: 	now := time.Now().Add(-10 * time.Second)
		jws.go#L63: 		c.Exp = now.Add(time.Hour).Unix()

	golang.org/x/oauth2/jwt
		jwt.go#L120: 		claimSet.Exp = time.Now().Add(t).Unix()
		jwt.go#L168: 		token.Expiry = time.Now().Add(time.Duration(secs) * time.Second)

	google.golang.org/api/idtoken
		cache.go#L118: 	return c.now().Add(time.Duration(maxAge-age) * time.Second)
		compute.go#L54: 		Expiry: time.Now().Add(55 * time.Minute),

	google.golang.org/grpc
		clientconn.go#L1121: 		connectDeadline := time.Now().Add(dialDuration)
		server.go#L775: 	rawConn.SetDeadline(time.Now().Add(s.opts.connectionTimeout))

	google.golang.org/grpc/internal/transport
		http2_server.go#L726: 		if t.lastPingAt.Add(defaultPingTimeout).After(now) {
		http2_server.go#L731: 		if t.lastPingAt.Add(t.kep.MinTime).After(now) {

	net
		dial.go#L120: 		earliest = now.Add(d.Timeout)
		dial.go#L156: 	return now.Add(timeout), nil
		dnsclient_unix.go#L152: 		ctx, cancel := context.WithDeadline(ctx, time.Now().Add(timeout))
		dnsclient_unix.go#L358: 	if conf.lastChecked.After(now.Add(-5 * time.Second)) {
		hosts.go#L61: 		hosts.expire = now.Add(cacheMaxAge)
		hosts.go#L94: 	hosts.expire = now.Add(cacheMaxAge)
		interface.go#L197: 	if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {

	net/http
		client.go#L189: 		return time.Now().Add(c.Timeout)
		server.go#L968: 		hdrDeadline = t0.Add(d)
		server.go#L971: 		wholeReqDeadline = t0.Add(d)
		server.go#L976: 			c.rwc.SetWriteDeadline(time.Now().Add(d))
		server.go#L1835: 			c.rwc.SetReadDeadline(time.Now().Add(d))
		server.go#L1838: 			c.rwc.SetWriteDeadline(time.Now().Add(d))
		server.go#L1976: 			c.rwc.SetReadDeadline(time.Now().Add(d))
		transport.go#L1022: 		oldTime = time.Now().Add(-t.IdleConnTimeout)

	testing
		testing.go#L1479: 		deadline = time.Now().Add(*timeout)
		testing.go#L1696: 	deadline := time.Now().Add(*timeout)