MCPcopy Create free account
hub / github.com/golang/appengine / timeSecToTime

Function timeSecToTime

v2/memcache/memcache.go:128–134  ·  view source on GitHub ↗

For convenience, we interpret a 0 unix second timestamp as a nil *Time.

(s int64)

Source from the content-addressed store, hash-verified

126
127// For convenience, we interpret a 0 unix second timestamp as a nil *Time.
128func timeSecToTime(s int64) *time.Time {
129 if s == 0 {
130 return nil
131 }
132 t := time.Unix(s, 0)
133 return &t
134}
135
136// If err is an appengine.MultiError, return its first element. Otherwise, return err.
137func singleError(err error) error {

Callers 1

protoToItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…