func time.Unix
54 uses
time (current package)
time.go#L1292: func Unix(sec int64, nsec int64) Time {
archive/zip
reader.go#L385: modified = time.Unix(epoch.Unix()+secs, nsecs)
reader.go#L393: modified = time.Unix(ts, 0)
reader.go#L399: modified = time.Unix(ts, 0)
cloud.google.com/go/logging
logging.go#L180: unixZeroTimestamp, err = ptypes.TimestampProto(time.Unix(0, 0))
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#L381: createdAt := time.Unix(int64(hs.sessionState.createdAt), 0)
handshake_server_tls13.go#L279: createdAt := time.Unix(int64(sessionState.createdAt), 0)
github.com/aws/aws-sdk-go/aws
convert_types.go#L849: return time.Unix((*v / 1000), 0)
convert_types.go#L858: return time.Unix(0, (*v * 1000000))
github.com/aws/aws-sdk-go/private/protocol
timestamp.go#L81: return time.Unix(int64(v), int64(dec*(1e9))), nil
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
unmarshal.go#L288: t := time.Unix(0, ms*1e6).UTC()
github.com/go-git/go-git/v5
worktree_bsd.go#L15: e.CreatedAt = time.Unix(int64(os.Atimespec.Sec), int64(os.Atimespec.Nsec))
github.com/go-git/go-git/v5/plumbing/format/index
decoder.go#L121: e.CreatedAt = time.Unix(int64(sec), int64(nsec))
decoder.go#L125: e.ModifiedAt = time.Unix(int64(msec), int64(mnsec))
github.com/go-git/go-git/v5/plumbing/object
object.go#L135: s.When = time.Unix(ts, 0).In(time.UTC)
github.com/go-git/go-git/v5/plumbing/protocol/packp
ulreq_decode.go#L233: t := time.Unix(secs, 0).UTC()
github.com/go-redis/redis/v8
command.go#L588: cmd.val = time.Unix(sec, microsec*1000)
command.go#L2235: createdAtTime := time.Unix(createdAt, 0)
github.com/go-redis/redis/v8/internal/pool
conn.go#L43: return time.Unix(unix, 0)
github.com/golang/protobuf/ptypes
timestamp.go#L41: t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp
timestamp.go#L43: t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC()
github.com/google/pprof/profile
profile.go#L533: ss = append(ss, fmt.Sprintf("Time: %v", time.Unix(0, p.TimeNanos)))
github.com/jackc/pgtype
timestamp.go#L145: tim := time.Unix(microsecSinceUnixEpoch/1000000, (microsecSinceUnixEpoch%1000000)*1000).UTC()
timestamptz.go#L152: tim := time.Unix(microsecSinceUnixEpoch/1000000, (microsecSinceUnixEpoch%1000000)*1000)
github.com/prometheus/common/model
time.go#L95: return time.Unix(int64(t)/second, (int64(t)%second)*nanosPerTick)
go.opencensus.io/zpages/internal
resources.go#L123: return time.Unix(f.modtime, 0)
golang.org/x/crypto/openpgp/packet
public_key.go#L268: pk.CreationTime = time.Unix(int64(uint32(buf[1])<<24|uint32(buf[2])<<16|uint32(buf[3])<<8|uint32(buf[4])), 0)
public_key_v3.go#L62: pk.CreationTime = time.Unix(int64(uint32(buf[1])<<24|uint32(buf[2])<<16|uint32(buf[3])<<8|uint32(buf[4])), 0)
signature.go#L262: sig.CreationTime = time.Unix(int64(t), 0)
signature_v3.go#L60: sig.CreationTime = time.Unix(int64(t), 0)
golang.org/x/net/internal/socks
client.go#L18: aLongTimeAgo = time.Unix(1, 0)
golang.org/x/net/internal/timeseries
timeseries.go#L241: level.end = time.Unix(0, (t.UnixNano()/level.size.Nanoseconds())*level.size.Nanoseconds())
golang.org/x/oauth2/jwt
jwt.go#L176: token.Expiry = time.Unix(claimSet.Exp, 0)
golang.org/x/pkgsite/internal/cookie
flash.go#L38: Expires: time.Unix(0, 0),
google.golang.org/grpc
clientconn.go#L771: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&cc.czData.lastCallStartedTime)),
clientconn.go#L1468: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&ac.czData.lastCallStartedTime)),
server.go#L965: LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&s.czData.lastCallStartedTime)),
google.golang.org/grpc/internal/transport
http2_client.go#L1444: LastLocalStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)),
http2_client.go#L1445: LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)),
http2_client.go#L1446: LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)),
http2_server.go#L1219: LastRemoteStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)),
http2_server.go#L1220: LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)),
http2_server.go#L1221: LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)),
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L795: t := time.Unix(secs, nanos).UTC()
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L198: return time.Unix(int64(x.GetSeconds()), int64(x.GetNanos())).UTC()
net
net.go#L490: 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_darwin.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)))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |