(raw string)
| 1288 | } |
| 1289 | |
| 1290 | func parseMemoryTime(raw string) time.Time { |
| 1291 | value := strings.TrimSpace(raw) |
| 1292 | if value == "" { |
| 1293 | return time.Time{} |
| 1294 | } |
| 1295 | parsed, err := time.Parse(time.RFC3339Nano, value) |
| 1296 | if err == nil { |
| 1297 | return parsed.UTC() |
| 1298 | } |
| 1299 | parsed, err = time.Parse(time.RFC3339, value) |
| 1300 | if err == nil { |
| 1301 | return parsed.UTC() |
| 1302 | } |
| 1303 | return time.Time{} |
| 1304 | } |
| 1305 | |
| 1306 | func intFromInt64(value int64) int { |
| 1307 | if value > int64(^uint(0)>>1) { |
no outgoing calls
no test coverage detected