time.Time.Sub (method)
15 uses
time (current package)
time.go#L914: func (t Time) Sub(u Time) Duration {
time.go#L948: return Now().Sub(t)
time.go#L958: return t.Sub(Now())
crypto/tls
common.go#L986: if len(c.autoSessionTicketKeys) > 0 && c.time().Sub(c.autoSessionTicketKeys[0].created) < ticketKeyRotation {
common.go#L996: if len(c.autoSessionTicketKeys) == 0 || c.time().Sub(c.autoSessionTicketKeys[0].created) >= ticketKeyRotation {
common.go#L1005: if c.time().Sub(k.created) < ticketKeyLifetime {
handshake_client.go#L498: ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
handshake_client_tls13.go#L353: ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
handshake_server.go#L453: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
handshake_server_tls13.go#L352: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
net
dial.go#L222: timeRemaining := deadline.Sub(now)
net/http
h2_bundle.go#L6659: st.readDeadline = sc.srv.afterFunc(deadline.Sub(sc.srv.now()), st.onReadTimeout)
h2_bundle.go#L6661: st.readDeadline.Reset(deadline.Sub(sc.srv.now()))
h2_bundle.go#L6685: st.writeDeadline = sc.srv.afterFunc(deadline.Sub(sc.srv.now()), st.onWriteTimeout)
h2_bundle.go#L6687: st.writeDeadline.Reset(deadline.Sub(sc.srv.now()))
![]() |
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. |