- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for timestampConverter (0.15 sec)
-
src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java
* Converter for timestamps. * * @author higa */ public class TimestampConverter implements Converter { /** * The pattern for the date and time. */ protected String pattern; /** * Constructs an instance. * * @param pattern * the pattern for date and time */ public TimestampConverter(final String pattern) { assertArgumentNotEmpty("pattern", pattern);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/TimestampConverterTest.java
*/ public class TimestampConverterTest { /** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final TimestampConverter converter = new TimestampConverter("yyyy/MM/dd HH:mm:ss"); final java.sql.Timestamp result = (java.sql.Timestamp) converter.getAsObject("2008/12/31 12:34:56"); System.out.println(result);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/CopyOptionsUtil.java
* @return A {@link CopyOptions} with a timestamp converter applied. * @see CopyOptions#timestampConverter(String, CharSequence...) * @see TimestampConverter */ public static CopyOptions timestampConverter(final String pattern, final CharSequence... propertyNames) { return new CopyOptions().timestampConverter(pattern, propertyNames); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/CopyOptions.java
* @return This instance itself * @see TimestampConverter */ public CopyOptions timestampConverter(final String pattern, final CharSequence... propertyNames) { assertArgumentNotEmpty("pattern", pattern); return converter(new TimestampConverter(pattern), propertyNames); } /** * Sets a converter for numbers. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java
} /** * @throws Exception */ @Test public void testTimestampConverter() throws Exception { assertThat(new CopyOptions().timestampConverter("yyyyMMdd ss").convertValue(new java.sql.Timestamp(0), "aaa", String.class), is((Object) "19700101 00")); } /** * @throws Exception */ @Test
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 12K bytes - Viewed (0)