- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 153 for SetTime (0.18 sec)
-
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) -
pkg/kubelet/token/token_manager_test.go
name string exp time.Duration f func(t *testing.T, s *suite) }{ { name: "rotate hour token expires in the last 12 minutes", exp: time.Hour, f: func(t *testing.T, s *suite) { s.clock.SetTime(s.clock.Now().Add(50 * time.Minute)) if _, err := s.mgr.GetServiceAccountToken("a", "b", getTokenRequest()); err != nil { t.Fatalf("unexpected error: %v", err) } if s.tg.count != 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 16.2K 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) -
pkg/controlplane/controller/legacytokentracking/controller_test.go
controller.configMapCache.Delete(&corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceSystem, Name: ConfigMapName}, }) controller.clock.(*testingclock.FakeClock).SetTime(createAt) if err := controller.syncConfigMap(); err != nil { t.Errorf("Failed to sync ConfigMap, err: %v", err) } } if diff := cmp.Diff(test.expectedActions, client.Actions()); diff != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 19 17:33:34 UTC 2023 - 7.6K bytes - Viewed (0) -
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) -
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/main/java/org/codelibs/core/convert/TimeConversionUtil.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 21.2K bytes - Viewed (0)