Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GMT (0.2 sec)

  1. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 70 00:00:00 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 01 January 1970 00:00:00 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 01 Janucember 1970 00:00:00 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 1 Jan 1970 00:00:00 GMT")!!.expiresAt)
          .isEqualTo(0L)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                val string = formatUtcTime(value)
                return writer.writeUtf8(string)
              }
            },
        )
    
      internal fun parseUtcTime(string: String): Long {
        val utc = TimeZone.getTimeZone("GMT")
        val dateFormat =
          SimpleDateFormat("yyMMddHHmmss'Z'").apply {
            timeZone = utc
            set2DigitYearStart(Date(-631152000000L)) // 1950-01-01T00:00:00Z.
          }
    
        try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

            )
        }
      }
    
      private fun date(s: String): Date {
        return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
          parse(s)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    @JvmField
    internal val EMPTY_REQUEST: RequestBody = commonEmptyRequestBody
    
    @JvmField
    internal val EMPTY_RESPONSE: ResponseBody = commonEmptyResponse
    
    /** GMT and UTC are equivalent for our purposes. */
    @JvmField
    internal val UTC: TimeZone = TimeZone.getTimeZone("GMT")!!
    
    internal fun threadFactory(
      name: String,
      daemon: Boolean,
    ): ThreadFactory =
      ThreadFactory { runnable ->
        Thread(runnable, name).apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CookiesTest.kt

        val urlWithIpAddress = urlWithIpAddress(server, "/path/foo")
        server.enqueue(
          MockResponse.Builder()
            .addHeader(
              "Set-Cookie: a=android; " +
                "expires=Fri, 31-Dec-9999 23:59:59 GMT; " +
                "path=/path; " +
                "domain=${urlWithIpAddress.host}; " +
                "secure",
            )
            .build(),
        )
        get(urlWithIpAddress)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

          .readByteString()
      }
    
      private fun date(s: String): Date {
        return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
          parse(s)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
Back to top