func time.Unix
28 uses
time (current package)
time.go#L1648: func Unix(sec int64, nsec int64) Time {
time.go#L1664: return Unix(msec/1e3, (msec%1e3)*1e6)
time.go#L1670: return Unix(usec/1e6, (usec%1e6)*1e3)
compress/gzip
gunzip.go#L192: hdr.ModTime = time.Unix(t, 0)
gzip.go#L157: if z.ModTime.After(time.Unix(0, 0)) {
crypto/tls
handshake_client.go#L470: if c.config.time().After(time.Unix(int64(session.useBy), 0)) {
handshake_client.go#L511: ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
handshake_client_tls13.go#L346: ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
handshake_server.go#L476: createdAt := time.Unix(int64(sessionState.createdAt), 0)
handshake_server_tls13.go#L386: createdAt := time.Unix(int64(sessionState.createdAt), 0)
go.pact.im/x/clock/fakeclock
fakeclock.go#L47: return Time(time.Unix(0, 0))
fakeclock.go#L61: t := time.Unix(math.MaxInt32, 0)
go.uber.org/zap
field.go#L36: _minTimeInt64 = time.Unix(0, math.MinInt64)
field.go#L37: _maxTimeInt64 = time.Unix(0, math.MaxInt64)
go.uber.org/zap/zapcore
field.go#L152: enc.AddTime(f.Key, time.Unix(0, f.Integer).In(f.Interface.(*time.Location)))
field.go#L155: enc.AddTime(f.Key, time.Unix(0, f.Integer))
golang.org/x/net/internal/timeseries
timeseries.go#L241: level.end = time.Unix(0, (t.UnixNano()/level.size.Nanoseconds())*level.size.Nanoseconds())
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L784: t := time.Unix(secs, nanos).UTC()
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L200: return time.Unix(int64(x.GetSeconds()), int64(x.GetNanos())).UTC()
internal/profile
profile.go#L300: ss = append(ss, fmt.Sprintf("Time: %v", time.Unix(0, p.TimeNanos)))
net
net.go#L522: aLongTimeAgo = time.Unix(1, 0)
net/http
fs.go#L609: var unixEpochTime = time.Unix(0, 0)
http.go#L91: var aLongTimeAgo = time.Unix(1, 0)
socks_bundle.go#L24: socksaLongTimeAgo = time.Unix(1, 0)
os
stat_linux.go#L16: fs.modTime = time.Unix(fs.sys.Mtim.Unix())
stat_linux.go#L47: return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
runtime/debug
garbage.go#L50: stats.LastGC = time.Unix(0, int64(stats.Pause[n]))
garbage.go#L61: stats.PauseEnd = append(stats.PauseEnd, time.Unix(0, int64(ns)))