time.Time.Unix (method)
24 uses
time (current package)
time.go#L1432: func (t Time) Unix() int64 {
time.go#L1682: _, _, _, _, isDST := t.loc.lookup(t.Unix())
compress/gzip
gzip.go#L160: le.PutUint32(z.buf[4:8], uint32(z.ModTime.Unix()))
crypto/tls
handshake_client_tls13.go#L873: session.useBy = uint64(c.config.time().Add(lifetime).Unix())
ticket.go#L302: createdAt: uint64(c.config.time().Unix()),
github.com/andybalholm/brotli/flate
gzip.go#L46: dst = appendUint32(dst, uint32(time.Now().Unix()))
github.com/gotd/td/exchange
client_flow.go#L289: result.ExpiresAt = c.clock.Now().Unix() + int64(c.expiresIn)
server_flow.go#L242: ServerTime: int(s.clock.Now().Unix()),
github.com/gotd/td/mtproto
bind.go#L61: expiresAt = c.clock.Now().Unix() + int64(c.tempKeyTTL)
bind.go#L202: return c.clock.Now().Unix()-createdAt > 60
connect.go#L172: c.permKeyCreatedAt = c.clock.Now().Unix()
connect.go#L191: expiresAt = c.clock.Now().Unix() + int64(c.tempKeyTTL)
pfs.go#L33: expiresAt = c.clock.Now().Unix() + int64(c.tempKeyTTL)
github.com/gotd/td/mtproto/salts
salts.go#L29: date := int(deadline.Unix())
github.com/gotd/td/mtproxy/faketls
client_hello.go#L99: old ^= uint32(now.Now().Unix())
github.com/gotd/td/tdp
tdp.go#L60: max = now.AddDate(0, 0, 7).Unix()
tdp.go#L61: min = now.AddDate(-2, 0, 0).Unix()
github.com/klauspost/compress/gzip
gzip.go#L192: le.PutUint32(z.buf[4:8], uint32(z.ModTime.Unix()))
github.com/refraction-networking/utls
handshake_client_tls13.go#L1065: session.useBy = uint64(c.config.time().Add(lifetime).Unix())
ticket.go#L297: createdAt: uint64(c.config.time().Unix()),
net/http
fs.go#L608: if t.Unix() == modtime.Unix() {
server.go#L1840: packedState := uint64(time.Now().Unix()<<8) | uint64(state)
server.go#L3210: if st == StateNew && unixSec < time.Now().Unix()-5 {
 |
The pages are generated with Golds v0.8.4. (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. |