- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for SetTime (0.75 sec)
-
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) -
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) -
subprojects/core/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java
private void visitFile(FileCopyDetails fileDetails) { try { ZipArchiveEntry archiveEntry = new ZipArchiveEntry(fileDetails.getRelativePath().getPathString()); archiveEntry.setTime(getArchiveTimeFor(fileDetails)); archiveEntry.setUnixMode(UnixStat.FILE_FLAG | fileDetails.getPermissions().toUnixNumeric()); zipOutStr.putArchiveEntry(archiveEntry);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 08 14:16:53 UTC 2023 - 6.6K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/JarUtils.groovy
def jarOut = new JarOutputStream(out) try { contents.each { file, fileContents -> def zipEntry = new ZipEntry(file) zipEntry.setTime(0) jarOut.putNextEntry(zipEntry) jarOut << fileContents } } finally { jarOut.close() } return out.toByteArray() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 07 19:17:11 UTC 2023 - 6.4K bytes - Viewed (0) -
src/cmd/distpack/archive.go
if err != nil { log.Fatalf("archive remove: %v", err) } if match { return false } } return true }) } // SetTime sets the modification time of all files in the archive to t. func (a *Archive) SetTime(t time.Time) { for i := range a.Files { a.Files[i].Time = t } } // RenameGoMod renames the go.mod files in the archive to _go.mod,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 17:37:52 UTC 2023 - 5.9K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_filter_test.go
RequestInfo: reqInfo, User: flowUser, } // Add 1 second to the fake clock during QueueNoteFn newTime := startTime.Add(time.Second) qnf := fq.QueueNoteFn(func(bool) { clk.FakePassiveClock.SetTime(newTime) }) ctx := request.WithLatencyTrackers(context.Background()) controller.Handle(ctx, rd, noteFn, workEstr, qnf, func() {}) latencyTracker, ok := request.LatencyTrackersFrom(ctx) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 5.6K bytes - Viewed (0) -
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) -
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)