Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 153 for SetTime (0.12 sec)

  1. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new Timestamp(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Timestamp(date.getTime());
            }
            final Timestamp timestamp = toSqlTimestampJdbcEscape(str);
            if (timestamp != null) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    	// Should report kubelet not ready if the runtime check is out of date
    	clock.SetTime(time.Now().Add(-maxWaitForContainerRuntime))
    	kubelet.updateRuntimeUp()
    	checkNodeStatus(v1.ConditionFalse, "KubeletNotReady")
    
    	// Should report kubelet ready if the runtime check is updated
    	clock.SetTime(time.Now())
    	kubelet.updateRuntimeUp()
    	checkNodeStatus(v1.ConditionTrue, "KubeletReady")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new java.sql.Date(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new java.sql.Date(date.getTime());
            }
            final java.sql.Date sqlDate = toSqlDateJdbcEscape(str);
            if (sqlDate != null) {
                return sqlDate;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. pkg/kubelet/pod_workers_test.go

    func (w *timeIncrementingWorkers) UpdatePod(options UpdatePodOptions, afterFns ...func()) {
    	func() {
    		w.lock.Lock()
    		defer w.lock.Unlock()
    		w.w.UpdatePod(options)
    		w.w.clock.(*clocktesting.FakePassiveClock).SetTime(w.w.clock.Now().Add(time.Second))
    		for _, fn := range afterFns {
    			fn()
    		}
    	}()
    	w.drainUnpausedWorkers()
    }
    
    // SyncKnownPods increments the clock after SyncKnownPods is called, but before the workers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		return
    	}
    	t.Errorf("Failed to find request from user %s", username)
    }
    
    func (uss *uniformScenarioState) evalTo(lim time.Time, last, expectFair bool, margin float64) {
    	uss.clk.Run(&lim)
    	uss.clk.SetTime(lim)
    	if uss.doSplit && !last {
    		uss.t.Logf("%s: End of first half of scenario %q", uss.clk.Now().Format(nsTimeFmt), uss.name)
    	} else {
    		uss.t.Logf("%s: End of scenario %q", uss.clk.Now().Format(nsTimeFmt), uss.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  6. pkg/kubelet/images/image_gc_manager_test.go

    	assert.Len(fakeRuntime.ImageList, 2)
    
    	// Move clock by a lot, and the images should continue to not be garbage colleced
    	// See https://stackoverflow.com/questions/25065055/what-is-the-maximum-time-time-in-go
    	fakeClock.SetTime(time.Unix(1<<63-62135596801, 999999999))
    	images, err = manager.freeOldImages(ctx, images, fakeClock.Now(), oldStartTime)
    	require.NoError(t, err)
    	assert.Len(images, 1)
    	assert.Len(fakeRuntime.ImageList, 2)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue_test.go

    				queue.AddUnschedulableIfNotPresent(logger, pInfo, 1)
    				// Override clock to exceed the DefaultPodMaxInUnschedulablePodsDuration so that unschedulable pods
    				// will be moved to activeQ
    				c.SetTime(timestamp.Add(DefaultPodMaxInUnschedulablePodsDuration + 1))
    				queue.flushUnschedulablePodsLeftover(logger)
    			},
    			wantAttempts:         2,
    			wantInitialAttemptTs: timestamp,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/Encdec.java

            switch ( enc ) {
            case TIME_1970_SEC_32BE:
                return enc_uint32be((int) ( date.getTime() / 1000L ), dst, di);
            case TIME_1970_SEC_32LE:
                return enc_uint32le((int) ( date.getTime() / 1000L ), dst, di);
            case TIME_1904_SEC_32BE:
                return enc_uint32be((int) ( ( date.getTime() / 1000L + SEC_BETWEEEN_1904_AND_1970 ) & 0xFFFFFFFF ), dst, di);
            case TIME_1904_SEC_32LE:
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:10"));
        }
    
        /**
         * @throws Exception
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/Encdec.java

            switch( enc ) {
                case TIME_1970_SEC_32BE:
                    return enc_uint32be( (int)(date.getTime() / 1000L), dst, di );
                case TIME_1970_SEC_32LE:
                    return enc_uint32le( (int)(date.getTime() / 1000L), dst, di );
                case TIME_1904_SEC_32BE:
                    return enc_uint32be( (int)((date.getTime() / 1000L +
                        SEC_BETWEEEN_1904_AND_1970) & 0xFFFFFFFF), dst, di );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
Back to top