Package jodd.typeconverter.impl

Examples of jodd.typeconverter.impl.CalendarConverter


    register(java.util.Date.class, new DateConverter());
    register(java.sql.Date.class, new SqlDateConverter());
    register(Time.class, new SqlTimeConverter());
    register(Timestamp.class, new SqlTimestampConverter());
    register(Calendar.class, new CalendarConverter());
    register(GregorianCalendar.class, new CalendarConverter());
    register(JDateTime.class, new JDateTimeConverter());

    register(File.class, new FileConverter());

    register(Class.class, new ClassConverter());
View Full Code Here


    register(java.util.Date.class, new DateConverter());
    register(java.sql.Date.class, new SqlDateConverter());
    register(Time.class, new SqlTimeConverter());
    register(Timestamp.class, new SqlTimestampConverter());
    register(Calendar.class, new CalendarConverter());
    register(GregorianCalendar.class, new CalendarConverter());
    register(JDateTime.class, new JDateTimeConverter());

    register(File.class, new FileConverter());

    register(Class.class, new ClassConverter());
View Full Code Here

  @Test
  public void testCalendarDate() {
    JDateTime jdt = new JDateTime();

    CalendarConverter calendarConverter = new CalendarConverter();
    Calendar gc = calendarConverter.convert(jdt);
    DateFormat df = new SimpleDateFormat();
    assertEquals(df.format(gc.getTime()), df.format(Convert.toDate(jdt)));
  }
View Full Code Here

TOP

Related Classes of jodd.typeconverter.impl.CalendarConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.