Package jodd.datetime.format

Examples of jodd.datetime.format.Iso8601JdtFormatter


  }


  @Test
  public void testExternalConversion() {
    JdtFormatter fmt = new Iso8601JdtFormatter();
    JDateTime jdt = new JDateTime();
    String s1 = fmt.convert(jdt, "YYYY-MM.DD");
    assertEquals(s1, jdt.toString("YYYY-MM.DD"));
  }
View Full Code Here


  }


  @Test
  public void testFormat() {
    JdtFormat format = new JdtFormat(new Iso8601JdtFormatter(), "YYYY+DD+MM");
    JDateTime jdt = new JDateTime(2002, 2, 22);
    assertEquals("2002+22+02", jdt.toString(format));
    assertEquals(format.convert(jdt), jdt.toString(format));
  }
View Full Code Here

TOP

Related Classes of jodd.datetime.format.Iso8601JdtFormatter

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.