Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 267 for DATE (0.03 sec)

  1. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                final SimpleDateFormat format = new SimpleDateFormat(pattern, locale);
                final Date date = toDate(str, format);
                if (date != null) {
                    return new Time(date.getTime());
                }
            }
            final Date date = toDate(str, locale);
            if (date != null) {
                return new Time(date.getTime());
            }
            final Time time = toSqlTimeJdbcEscape(str);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

      }
    
      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? = formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta)))
    
      private fun formatDate(date: Date): String? {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractConditionQuery.java

        protected String toRangeDateString(Date date, String format) {
            if (format.contains("epoch_millis")) {
                return Long.toString(date.getTime());
            } else if (format.contains("date_optional_time")) {
                final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
                sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
                return sdf.format(date);
            } else {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

      }
    
      @Test fun expiresDate() {
        assertThat(Date(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:00:00 GMT")!!.expiresAt))
          .isEqualTo(date("1970-01-01T00:00:00.000+0000"))
        assertThat(Date(parse(url, "a=b; Expires=Wed, 09 Jun 2021 10:18:14 GMT")!!.expiresAt))
          .isEqualTo(date("2021-06-09T10:18:14.000+0000"))
        assertThat(Date(parse(url, "a=b; Expires=Sun, 06 Nov 1994 08:49:37 GMT")!!.expiresAt))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

        }
    
        /**
         * Calculates the document expiration date based on crawling configuration.
         * If the config has a timeToLive value, calculates expiration from current time.
         * Otherwise, returns the stored document expiration time.
         *
         * @param config the crawling configuration containing time-to-live settings
         * @return the document expiration date, or null if no expiration is set
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  6. 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)
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            final Date date = toDate("11:49");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/converter/SqlDateConverter.java

    import java.util.Date;
    
    import org.codelibs.core.beans.Converter;
    import org.codelibs.core.convert.DateConversionUtil;
    import org.codelibs.core.convert.StringConversionUtil;
    import org.codelibs.core.lang.StringUtil;
    
    /**
     * Converter for SQL dates.
     *
     * @author higa
     */
    public class SqlDateConverter implements Converter {
    
        /**
         * The date pattern.
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/DateFormatting.kt

      object : ThreadLocal<DateFormat>() {
        override fun initialValue(): DateFormat {
          // Date format specified by RFC 7231 section 7.1.1.1.
          return SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US).apply {
            isLenient = false
            timeZone = UTC
          }
        }
      }
    
    /** If we fail to parse a date in a non-standard format, try each of these formats in sequence. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.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);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top