Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for toCalendar (0.09 sec)

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

         */
        @Test
        public void testToCalendar_Null() throws Exception {
            assertThat(toCalendar(null), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_EmptyString() throws Exception {
            assertThat(toCalendar(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        //    @Test
        //    public void testToCalendar_Null() throws Exception {
        //        assertThat(toCalendar(null, Locale.JAPAN), is(nullValue()));
        //    }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_EmptyString() throws Exception {
            assertThat(toCalendar("", Locale.JAPAN), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

         */
        @Test
        public void testToCalendar_Null() throws Exception {
            assertThat(toCalendar(null), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_EmptyString() throws Exception {
            assertThat(toCalendar(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/CalendarConversionUtil.java

         */
        public static Calendar toCalendar(final Object o) {
            return toCalendar(o, null);
        }
    
        /**
         * {@link Calendar}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Calendar}
         */
        public static Calendar toCalendar(final Object o, final String pattern) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

         */
        public static Calendar toCalendar(final Object src) {
            return toCalendar(src, null, LocaleUtil.getDefault());
        }
    
        /**
         * オブジェクトを{@link Calendar}に変換します。
         *
         * @param src
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Date}
         */
        public static Calendar toCalendar(final Object src, final String pattern) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar() throws Exception {
            final Date date = new Date();
            final Calendar cal = CalendarConversionUtil.toCalendar(date);
            assertEquals(date, cal.getTime());
        }
    
        /**
         *
         * @throws Exception
         */
        @Test
        public void testLocalize() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

                return (T) convertWithString(arg);
            } else if (java.util.Calendar.class.isAssignableFrom(propertyType)) {
                return (T) CalendarConversionUtil.toCalendar(arg);
            }
            return (T) arg;
        }
    
        private Object convertPrimitiveWrapper(final Object arg) {
            return NumberConversionUtil.convertPrimitiveWrapper(propertyType, arg);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (value == null) {
                return null;
            }
    
            try {
                if (PDF_DATE.equals(format)) {
                    final Calendar cal = DateConverter.toCalendar(value);
                    return cal != null ? cal.getTime() : null;
                }
    
                final long time = Joda.forPattern(format).parseMillis(value);
                return new Date(time);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top