- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 903 for getDate (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
} @Test fun setDate() { val expected = Date(1000) val headers = Headers .Builder() .add("testDate", Date(0L)) .set("testDate", expected) .build() assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT") assertThat(headers.getDate("testDate")).isEqualTo(expected) } @Test fun setInstant() {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
// Should return 0 when auto-connect fails due to missing project ID long lastModified = conn.getLastModified(); assertEquals(0, lastModified); } /** * Test that getDate() delegates to getLastModified(). */ public void test_getDate_delegatesToGetLastModified() throws Exception { URL url = new URL("gcs://mybucket/object.txt"); Handler handler = new Handler();Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt
*/ fun getDate(name: String): Date? = get(name)?.toHttpDateOrNull() /** * Returns the last value corresponding to the specified field parsed as an HTTP date, or null if * either the field is absent or cannot be parsed as a date. */ @IgnoreJRERequirement // Only programs that already have Instant will use this. fun getInstant(name: String): Instant? = getDate(name)?.toInstant()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 11.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
// Should return 0 when auto-connect fails due to missing endpoint long lastModified = conn.getLastModified(); assertEquals(0, lastModified); } /** * Test that getDate() delegates to getLastModified(). */ public void test_getDate_delegatesToGetLastModified() throws Exception { URL url = new URL("storage://mybucket/object.txt"); Handler handler = new Handler();Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
handshake(); } catch (final IOException ex) {} return connection.getExpiration(); } @Override public long getDate() { try { handshake(); } catch (final IOException ex) {} return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {}
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
} @Override public long getExpiration() { handshake(); return this.connection.getExpiration(); } @Override public long getDate() { handshake(); return this.connection.getDate(); } @Override public long getLastModified() { handshake(); return this.connection.getLastModified(); } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java
* This method returns the same value as getLastModified(). * * @return The date in milliseconds since epoch */ @Override public long getDate() { return getLastModified(); } /** * Returns the last modified date of the GCS object. * @return The last modified date in milliseconds since epoch. */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 9.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java
* This method returns the same value as getLastModified(). * * @return The date in milliseconds since epoch */ @Override public long getDate() { return getLastModified(); } /** * Returns the last modified date of the S3 object. * @return The last modified date in milliseconds since epoch. */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 07:57:44 UTC 2025 - 9.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java
* This method returns the same value as getLastModified(). * * @return The date in milliseconds since epoch */ @Override public long getDate() { return getLastModified(); } /** * Returns the last modified date of the storage object. * @return The last modified date in milliseconds since epoch.
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:52:56 UTC 2025 - 11.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
} @Test fun headers() { var headers: Headers = headersOf("", "") headers = mapOf("" to "").toHeaders() val get: String? = headers[""] val date: Date? = headers.getDate("") val instant: Instant? = headers.getInstant("") val size: Int = headers.size val name: String = headers.name(0) val value: String = headers.value(0) val names: Set<String> = headers.names()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 47K bytes - Viewed (0)