Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for SetTime (0.17 sec)

  1. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy

            when:
            setTime(51243)
    
            then:
            timer.getElapsed() == "51.243 secs"
        }
    
        def testOnlySecondsEvenMs() {
            when:
            setTime(4000)
    
            then:
            timer.getElapsed() == "4.0 secs"
        }
    
        def testMinutesAndSeconds() {
            when:
            setTime(0, 32, 40, 322)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
    
            DaemonStopEvent stopEvent = (DaemonStopEvent) o;
            return timestamp.getTime() == stopEvent.timestamp.getTime()
                && (reason != null ? reason.equals(stopEvent.reason) : stopEvent.reason == null);
        }
    
        @Override
        public int hashCode() {
            int result = timestamp.hashCode();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/CalendarConversionUtil.java

                return (Calendar) o;
            }
            final java.util.Date date = DateConversionUtil.toDate(o, pattern);
            if (date != null) {
                final Calendar cal = Calendar.getInstance();
                cal.setTime(date);
                return cal;
            }
            return null;
        }
    
        /**
         * ローカルの{@link TimeZone}と{@link Locale}をもつ{@link Calendar}に変換します。
         *
         * @param calendar
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

            writeContents(bos, cl)
    
            ZipArchiveOutputStream zipStream = new ZipArchiveOutputStream(testFile)
            try {
                def entry = new ZipArchiveEntry(testFile.name)
                entry.setTime(lmd.getTime())
                zipStream.putArchiveEntry(entry)
                zipStream << bos.toByteArray()
                zipStream.closeArchiveEntry()
                zipStream.finish()
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/cmd/distpack/pack.go

    	}
    	version, versionTime := readVERSION(goroot)
    
    	// Start with files from GOROOT, filtering out non-distribution files.
    	base, err := NewArchive(goroot)
    	if err != nil {
    		log.Fatal(err)
    	}
    	base.SetTime(versionTime)
    	base.SetMode(mode)
    	base.Remove(
    		".git/**",
    		".gitattributes",
    		".github/**",
    		".gitignore",
    		"VERSION.cache",
    		"misc/cgo/*/_obj/**",
    		"**/.DS_Store",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java

                    return null;
                }
            }
    
            private ZipArchiveEntry newZipEntryWithFixedTime(String name) {
                ZipArchiveEntry entry = new ZipArchiveEntry(name);
                entry.setTime(ZipCopyAction.CONSTANT_TIME_FOR_ZIP_ENTRIES);
                return entry;
            }
    
            private void configureCompression(ZipArchiveEntry entry, CompressionMethod compressionMethod, byte[] contents) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return new Time(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Time(date.getTime());
            }
            final Time time = toSqlTimeJdbcEscape(str);
            if (time != null) {
                return time;
            }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top