Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testToDate_SpecificLocale (0.38 sec)

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

            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_SpecificLocale() throws Exception {
            final Date date = toDate("SEP 7, 2010", Locale.US);
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. 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_SpecificLocale() throws Exception {
            final Date date = toDate("11:49:10 AM", "hh:mm:ss a", Locale.US);
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        //    }
    
        /**
         * @throws Exception
         */
        //    @Test
        //    public void testToDate_SpecificLocale() throws Exception {
        //        final Date date = toDate("SEP 7, 2010 11:49:10 AM", Locale.US);
        //        assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:10"));
        //    }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top