- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ofEpochMilli (0.07 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
assertThat(headers.getDate("testDate")).isEqualTo(expected) } @Test fun setInstant() { val expected = Instant.ofEpochMilli(1000L) val headers = Headers .Builder() .add("Test-Instant", Instant.ofEpochMilli(0L)) .set("Test-Instant", expected) .build() assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt
.toFormatter() private val offset = ZoneOffset.systemDefault() override fun format(record: LogRecord): String { val message = formatMessage(record) val time = Instant.ofEpochMilli(record.millis).atZone(offset) return if (record.thrown != null) { val sw = StringWriter(4096) val pw = PrintWriter(sw) record.thrown.printStackTrace(pw)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 2.1K bytes - Viewed (1) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/Slf4jMavenTransferListener.java
.append(resource.getResourceName()) .append(" ("); format.format(message, contentLength); Duration duration = Duration.between(Instant.ofEpochMilli(resource.getTransferStartTime()), MonotonicClock.now()); if ((duration.getSeconds() | duration.getNano()) > 0) { // duration.isPositive()
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Dec 12 11:02:17 UTC 2024 - 4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java
} @Deprecated @Override public void setBuildStartTime(Date buildStartTime) { setBuildStartInstant(buildStartTime != null ? Instant.ofEpochMilli(buildStartTime.getTime()) : null); } @Override public Instant getBuildStartInstant() { return this.buildStartTime; } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 10:13:56 UTC 2025 - 9.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java
this.basedir = basedir; return this; } @Deprecated @Override public MavenExecutionRequest setStartTime(Date startTime) { this.startTime = Instant.ofEpochMilli(startTime.getTime()); return this; } @Override public MavenExecutionRequest setShowErrors(boolean showErrors) { this.showErrors = showErrors; return this;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Dec 12 11:02:17 UTC 2024 - 32.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
item.kinds[i] = Kind.USER; } } item.id = SuggestUtil.createSuggestTextId(item.text); item.timestamp = ZonedDateTime.ofInstant(Instant.ofEpochMilli(timestamp), Clock.systemDefaultZone().getZone()); return item; } /** * Returns the updated source map by merging with existing source. * @param existingSource The existing source map.
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 25.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
/** * Gets the current time as a LocalDateTime object. * * @return The current time. */ public LocalDateTime getCurrentTimeAsLocalDateTime() { final Instant instant = Instant.ofEpochMilli(getCurrentTimeAsLong()); return LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); } /** * Gets the path to the log file. * * @return The log file path. */Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 20 08:30:43 UTC 2025 - 36.6K bytes - Viewed (0)