Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for _calendar (0.05 sec)

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

         * Converts a {@link Date} to a {@link Calendar}.
         *
         * @param date
         *            {@link Date}
         * @param locale
         *            Locale
         * @return The converted {@link Calendar}
         */
        protected static Calendar toCalendar(final Date date, final Locale locale) {
            final Calendar calendar;
            if (locale == null) {
                calendar = Calendar.getInstance();
            } else {
    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. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         * Converts a {@link Date} to a {@link Calendar}.
         *
         * @param date
         *            {@link Date}
         * @param locale
         *            Locale
         * @return The converted {@link Calendar}
         */
        protected static Calendar toCalendar(final Date date, final Locale locale) {
            final Calendar calendar;
            if (locale == null) {
                calendar = Calendar.getInstance();
            } else {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            final Calendar calendar = toCalendar("11:49");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), 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)
  4. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

            final Calendar calendar = toCalendar("10/9/7 11:49", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(calendar.getTime()), is("2010/09/07 11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("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)
  5. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            final Calendar calendar = toCalendar("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

        /**
         * Converts a {@link Date} to a {@link Calendar}.
         *
         * @param date the {@link Date}
         * @param locale the locale
         * @return the converted {@link Calendar}
         */
        protected static Calendar toCalendar(final Date date, final Locale locale) {
            final Calendar calendar;
            if (locale == null) {
                calendar = Calendar.getInstance();
            } else {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

            final Date date = new Date();
            final Calendar cal = CalendarConversionUtil.toCalendar(date);
            assertEquals(date, cal.getTime());
        }
    
        /**
         *
         * @throws Exception
         */
        @Test
        public void testLocalize() throws Exception {
            final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("JST"));
            final Calendar local = CalendarConversionUtil.localize(calendar);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

                }
            }
            return 0;
        }
    
        /**
         * Gets the current calendar instance set to the system time.
         *
         * @return the current calendar instance
         */
        protected Calendar getCurrentCal() {
            final Calendar cal = Calendar.getInstance();
            cal.setTimeInMillis(ComponentUtil.getSystemHelper().getCurrentTimeAsLong());
            return cal;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            } else if (arg instanceof String && !String.class.equals(propertyType)) {
                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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. 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 Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
Back to top