- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewTimestamp (0.44 sec)
-
pkg/kubelet/types/types.go
} // Timestamp wraps around time.Time and offers utilities to format and parse // the time using RFC3339Nano type Timestamp struct { time time.Time } // NewTimestamp returns a Timestamp object using the current time. func NewTimestamp() *Timestamp { return &Timestamp{time.Now()} } // ConvertToTimestamp takes a string, parses it using the RFC3339NanoLenient layout, // and converts it to a Timestamp object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleceptionSmokeTest.groovy
SmokeTestPreconditions.GradleBuildJvmSpecAvailable ]) abstract class AbstractGradleceptionSmokeTest extends AbstractSmokeTest { public static final String TEST_BUILD_TIMESTAMP = "-PbuildTimestamp=" + newTimestamp() public static final String TEST_JAVA_INSTALLATIONS = "-Porg.gradle.java.installations.paths=${AvailableJavaHomes.getAvailableJvms().collect { it.javaHome.absolutePath }.join(",")}"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4K bytes - Viewed (0) -
analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/session/builder/sessionBuilderTestUtils.kt
override fun getInputStream(): InputStream { error("Not yet implemented") } override fun getOutputStream(requestor: Any?, newModificationStamp: Long, newTimeStamp: Long): OutputStream { error("Not yet implemented") } override fun contentsToByteArray(): ByteArray = ktFile.text.toByteArray()
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 16:16:39 UTC 2024 - 3.9K bytes - Viewed (0) -
pkg/kubelet/types/types_test.go
require.Equal(t, result, data.expectStatuses, "Unexpected result from SortStatusesOfInitContainers: %v", result) } } func TestNewTimestamp(t *testing.T) { timeStart := time.Now() timestamp := NewTimestamp() timeEnd := time.Now() assert.WithinDuration(t, timestamp.Get(), timeStart, timeEnd.Sub(timeStart))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 19 08:28:25 UTC 2022 - 6.2K bytes - Viewed (0)