Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testToDate_SpecificPattern (0.2 sec)

  1. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_SpecificPattern() throws Exception {
            final Date date = toDate("10::49::11", "ss::mm::HH");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top