- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for ofEpochMilli (0.06 seconds)
-
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")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 5.7K bytes - Click Count (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)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.1K bytes - Click Count (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()
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Dec 12 11:02:17 GMT 2024 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/LogNotificationJob.java
sb.append("\n\n"); for (int i = 0; i < displayCount; i++) { final LogNotificationEvent event = events.get(i); final String timestamp = TIMESTAMP_FORMATTER.format(Instant.ofEpochMilli(event.getTimestamp())); String message = event.getMessage(); if (message != null && message.length() > maxMessageLength) { message = message.substring(0, maxMessageLength) + "...";
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 9.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java
} } item.setKinds(itemKinds); item.setId(SuggestUtil.createSuggestTextId(text)); item.setTimestamp(ZonedDateTime.ofInstant(Instant.ofEpochMilli(timestamp), Clock.systemDefaultZone().getZone())); return item; } /** * Creates an updated source map by merging the item with existing source. *Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.5K bytes - Click Count (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;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Dec 12 11:02:17 GMT 2024 - 32.1K bytes - Click Count (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. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 43.2K bytes - Click Count (0)