Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toCalendar (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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