For convenience, we interpret a 0 unix second timestamp as a nil *Time.
(s int64)
| 126 | |
| 127 | // For convenience, we interpret a 0 unix second timestamp as a nil *Time. |
| 128 | func 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. |
| 137 | func singleError(err error) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…