Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setTimeZone (0.04 sec)

  1. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

         */
        @Test
        public void testToDate_LongStyle() throws Exception {
            final Date date = toDate("11:49:10 JST");
            final SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
            df.setTimeZone(TimeZone.getTimeZone("JST"));
            assertThat(df.format(date), is("11:49:10"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_FullStyle() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        //        final Date date = toDate("2010/09/07 11:49:10 JST", Locale.JAPAN);
        //        final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        //        df.setTimeZone(TimeZone.getTimeZone("JST"));
        //        assertThat(df.format(date), is("2010/09/07 11:49:10"));
        //    }
    
        /**
         * @throws Exception
         */
        //    @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractConditionQuery.java

                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 {
                return Long.toString(date.getTime());
            }
        }
    
    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. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (date == null) {
                return StringUtil.EMPTY;
            }
            final SimpleDateFormat sdf = new SimpleDateFormat(Constants.ISO_DATETIME_FORMAT);
            sdf.setTimeZone(Constants.TIMEZONE_UTC);
            return sdf.format(date);
        }
    
        /**
         * Formats a LocalDateTime object to ISO datetime string format.
         *
         * @param date the LocalDateTime to format
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractConditionQuery.java

                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 {
                return Long.toString(date.getTime());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/opensearch/config/allcommon/EsAbstractConditionQuery.java

                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 {
                return Long.toString(date.getTime());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 21.1K bytes
    - Viewed (0)
Back to top