Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for timestampConverter (0.12 sec)

  1. 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)
  2. 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)
Back to top