func time.Unix
43 uses
time (current package)
time.go#L1334: func Unix(sec int64, nsec int64) Time {
time.go#L1350: return Unix(msec/1e3, (msec%1e3)*1e6)
time.go#L1356: 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_server.go#L407: createdAt := time.Unix(int64(hs.sessionState.createdAt), 0)
handshake_server_tls13.go#L264: createdAt := time.Unix(int64(sessionState.createdAt), 0)
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream
header_value.go#L473: return time.Unix(secs, msec*int64(time.Millisecond)).UTC()
github.com/aws/smithy-go/time
time.go#L83: return time.Unix(0, i*1e6).UTC()
github.com/go-pg/pg/v10/internal/pool
conn.go#L38: return time.Unix(int64(unix), 0)
github.com/golang/protobuf/jsonpb
encode.go#L201: t := time.Unix(s, ns).UTC()
github.com/golang/protobuf/ptypes
timestamp.go#L43: t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp
timestamp.go#L45: t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC()
github.com/vmihailenco/msgpack/v5
time.go#L90: return time.Unix(sec, nsec), nil
time.go#L131: return time.Unix(int64(sec), 0), nil
time.go#L136: return time.Unix(int64(sec), nsec), nil
time.go#L140: return time.Unix(int64(sec), int64(nsec)), nil
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/grpc
clientconn.go#L758: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&cc.czData.lastCallStartedTime)),
clientconn.go#L1461: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&ac.czData.lastCallStartedTime)),
server.go#L1089: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&s.czData.lastCallStartedTime)),
google.golang.org/grpc/internal/transport
http2_client.go#L1753: LastLocalStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)),
http2_client.go#L1754: LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)),
http2_client.go#L1755: LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)),
http2_server.go#L1390: LastRemoteStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)),
http2_server.go#L1391: LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)),
http2_server.go#L1392: LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)),
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L799: t := time.Unix(secs, nanos).UTC()
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L207: return time.Unix(int64(x.GetSeconds()), int64(x.GetNanos())).UTC()
internal/profile
profile.go#L345: ss = append(ss, fmt.Sprintf("Time: %v", time.Unix(0, p.TimeNanos)))
net
net.go#L494: aLongTimeAgo = time.Unix(1, 0)
net/http
fs.go#L522: var unixEpochTime = time.Unix(0, 0)
http.go#L30: var aLongTimeAgo = time.Unix(1, 0)
socks_bundle.go#L24: socksaLongTimeAgo = time.Unix(1, 0)
os
stat_linux.go#L45: return time.Unix(int64(ts.Sec), int64(ts.Nsec))
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)))