- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for timestampConverter (0.17 sec)
-
src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java
/** * 日時用のコンバータです。 * * @author higa */ public class TimestampConverter implements Converter { /** * 日時のパターンです。 */ protected String pattern; /** * インスタンスを構築します。 * * @param pattern * 日時のパターン */ public TimestampConverter(final String pattern) { assertArgumentNotEmpty("pattern", pattern);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 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 Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/CopyOptions.java
* @return このインスタンス自身 * @see TimestampConverter */ public CopyOptions timestampConverter(final String pattern, final CharSequence... propertyNames) { assertArgumentNotEmpty("pattern", pattern); return converter(new TimestampConverter(pattern), propertyNames); } /** * 数値のコンバータを設定します。 *
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 18.6K 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 Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 12K bytes - Viewed (0)