Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for timeLeft (0.09 sec)

  1. pkg/controller/ttlafterfinished/ttlafterfinished_controller.go

    	if job.DeletionTimestamp != nil || !needsCleanup(job) {
    		return nil, nil
    	}
    
    	now := tc.clock.Now()
    	t, e, err := timeLeft(logger, job, &now)
    	if err != nil {
    		return nil, err
    	}
    
    	// TTL has expired
    	if *t <= 0 {
    		return e, nil
    	}
    
    	tc.enqueueAfter(job, *t)
    	return nil, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 23:59:28 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1_test.go

    	}
    
    	if s := ObjectIdentifier([]int{1, 2, 3, 4}).String(); s != "1.2.3.4" {
    		t.Errorf("bad ObjectIdentifier.String(). Got %s, want 1.2.3.4", s)
    	}
    }
    
    type timeTest struct {
    	in  string
    	ok  bool
    	out time.Time
    }
    
    var utcTestData = []timeTest{
    	{"910506164540-0700", true, time.Date(1991, 05, 06, 16, 45, 40, 0, time.FixedZone("", -7*60*60))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
Back to top