Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 444 for Tate (0.18 sec)

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

      }
    
      /**
       * For Last-Modified and Date headers, we should echo the date back in the exact format we were
       * served.
       */
      @Test
      fun retainServedDateFormat() {
        // Serve a response with a non-standard date format that OkHttp supports.
        val lastModifiedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-1))
        val servedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-2))
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    	},
    	ErrMalformedDate: {
    		Code:           "MalformedDate",
    		Description:    "Invalid date format header, expected to be in ISO8601, RFC1123 or RFC1123Z time format.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMalformedPresignedDate: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Date must be in the ISO8601 Long Format \"yyyyMMdd'T'HHmmss'Z'\"",
    		HTTPStatusCode: http.StatusBadRequest,
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Sat Apr 06 05:26:02 GMT 2024
    - 90.2K bytes
    - Viewed (6)
  3. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            final Date date = toDate("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return date;
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return date;
            }
            final Time time = toSqlTimeJdbcEscape(str);
            if (time != null) {
                return new Date(time.getTime());
            }
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                final SimpleDateFormat format = new SimpleDateFormat(pattern, locale);
                final Date date = toDate(str, format);
                if (date != null) {
                    return date;
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return date;
            }
            final Timestamp timestamp = toSqlTimestampJdbcEscape(str);
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

        "EEE MMM d yyyy HH:mm:ss z",
      )
    
    private val BROWSER_COMPATIBLE_DATE_FORMATS =
      arrayOfNulls<DateFormat>(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size)
    
    /** Returns the date for this string, or null if the value couldn't be parsed. */
    fun String.toHttpDateOrNull(): Date? {
      if (isEmpty()) return null
    
      val position = ParsePosition(0)
      var result = STANDARD_DATE_FORMAT.get().parse(this, position)
      if (position.index == length) {
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

                    runningDocsTestTask.get() -> "from current time because testing docs"
                    runningOnCi.get() -> "from current time because CI"
                    else -> "from current date"
                }
            }
    
        private
        fun Date.withoutTime(): Date = SimpleDateFormat("yyyy-MM-dd").run {
            parse(format(this@withoutTime))
        }
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. cmd/signature-v4_test.go

    		// (6) Should error if the request is not ready yet, ie X-Amz-Date is in the future.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":      signV4Algorithm,
    				"X-Amz-Date":           now.Add(1 * time.Hour).Format(iso8601Format),
    				"X-Amz-Expires":        "60",
    				"X-Amz-Signature":      "badsignature",
    				"X-Amz-SignedHeaders":  "host;x-amz-content-sha256;x-amz-date",
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  9. cmd/signature-v2.go

    		canonicalHeaders += "\n"
    	}
    
    	date := expires // Date is set to expires date for presign operations.
    	if date == "" {
    		// If expires date is empty then request header Date is used.
    		date = headers.Get(xhttp.Date)
    	}
    
    	// From the Amazon docs:
    	//
    	// StringToSign = HTTP-Verb + "\n" +
    	// 	 Content-Md5 + "\n" +
    	//	 Content-Type + "\n" +
    	//	 Date/Expires + "\n" +
    	//	 CanonicalizedProtocolHeaders +
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  10. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

          .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"))
          .isEqualTo(date("2049-12-31T23:59:59.000+0000").time)
      }
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
Back to top