- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseUtcTime (0.07 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(Adapters.parseUtcTime("500101000000Z")) .isEqualTo(date("1950-01-01T00:00:00.000+0000").time) assertThat(Adapters.parseUtcTime("500101010000Z")) .isEqualTo(date("1950-01-01T01:00:00.000+0000").time) assertThat(Adapters.parseUtcTime("491231225959Z")) .isEqualTo(date("2049-12-31T22:59:59.000+0000").time) assertThat(Adapters.parseUtcTime("491231235959Z"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
val string = reader.readUtf8String() return parseUtcTime(string) } override fun encode( writer: DerWriter, value: Long, ) { val string = formatUtcTime(value) return writer.writeUtf8(string) } }, ) internal fun parseUtcTime(string: String): Long { val utc = TimeZone.getTimeZone("GMT")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0)