in container_images/cleanerupper/main.go [51:68]
func shouldDelete(name string, labels map[string]string, t string, s int64) bool {
var c time.Time
var err error
switch {
case t != "":
c, err = time.Parse(time.RFC3339, t)
if err != nil {
fmt.Printf("Error parsing create time %q: %v\n", t, err)
return false
}
case s != 0:
c = time.Unix(s, 0)
default:
return false
}
return c.Add(*duration).Before(now)
}