Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseNonStandardStrings (0.11 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt

        assertThat(Date(1402057830000L).toHttpDateString()).isEqualTo("Fri, 06 Jun 2014 12:30:30 GMT")
      }
    
      @Test
      @Throws(Exception::class)
      fun parseNonStandardStrings() {
        // RFC 822, updated by RFC 1123 with any TZ
        assertThat("Thu, 01 Jan 1970 00:00:00 GMT-01:00".toHttpDateOrNull()!!.time).isEqualTo(3600000L)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top