- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for toCalendar (0.06 sec)
-
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 9.5K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/TimeConversionUtil.java
if (date != null) { return toCalendar(date, locale); } } final Date date = toDate(str, locale); if (date != null) { return toCalendar(date, locale); } final Time time = toSqlTimeJdbcEscape(str); if (time != null) { return toCalendar(time, locale); } throw new ParseRuntimeException(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) -
src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java
if (date != null) { return toCalendar(date, locale); } } final Date date = toDate(str, locale); if (date != null) { return toCalendar(date, locale); } final Timestamp timestamp = toSqlTimestampJdbcEscape(str); if (timestamp != null) { return toCalendar(timestamp, locale); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 20.6K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 9.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
*/ public static Calendar toCalendar(final Object src) { return toCalendar(src, null, LocaleUtil.getDefault()); } /** * Converts an object to {@link Calendar}. * * @param src the source object * @param pattern the pattern string * @return the converted {@link Date} */ public static Calendar toCalendar(final Object src, final String pattern) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 19.6K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 15.1K bytes - Viewed (0) -
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)