Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 617 for Date (0.16 sec)

  1. tests/test_serialize_response_dataclass.py

    def get_coerce():
        return {"name": "coerce", "date": datetime(2021, 7, 26).isoformat(), "price": "1.0"}
    
    
    @app.get("/items/validlist", response_model=List[Item])
    def get_validlist():
        return [
            {"name": "foo", "date": datetime(2021, 7, 26)},
            {"name": "bar", "date": datetime(2021, 7, 26), "price": 1.0},
            {
                "name": "baz",
                "date": datetime(2021, 7, 26),
                "price": 2.0,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 26 13:56:47 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  2. 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 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                final Date date = toDate(str, format);
                if (date != null) {
                    return date;
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return date;
            }
            final java.sql.Date sqlDate = toSqlDateJdbcEscape(str);
            if (sqlDate != null) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  4. 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 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K 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 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/expiration_test.go

    		},
    		{ // Expiration with invalid date
    			inputXML: ` <Expiration>
                                        <Date>invalid date</Date>
                                        </Expiration>`,
    			expectedErr: errLifecycleInvalidDate,
    		},
    		{ // Expiration with both number of days nor a date
    			inputXML: `<Expiration>
    		                    <Date>2019-04-20T00:01:00Z</Date>
    		                    </Expiration>`,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. 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 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K 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 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  9. internal/bucket/lifecycle/transition.go

    	errTransitionInvalidDate     = Errorf("Date must be provided in ISO 8601 format")
    	errTransitionInvalid         = Errorf("Exactly one of Days (0 or greater) or Date (positive ISO 8601 format) should be present in Transition.")
    	errTransitionDateNotMidnight = Errorf("'Date' must be at midnight GMT")
    )
    
    // TransitionDate is a embedded type containing time.Time to unmarshal
    // Date in Transition
    type TransitionDate struct {
    	time.Time
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        public void testToDate_ShortStyle() throws Exception {
            final Date date = toDate("10/9/7 11:49", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7 11:49:10", Locale.JAPAN);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top