XsdDateTime extends Datatype<GregorianCalendar> { public String getCanonicalRepresentation() { return Iso8601Parser.getCanonicalRepresentation(getValue(), true, true, true, true, true); } XsdDateTime(String s); GregorianCalendar getValue(); String getCanonicalRepresentation(); static String leadZeros(int v, int l); static final Resource DT; }
@Test public void test() throws DatatypeParseException { assertEquals("1600-02-29T07:17:55Z", new XsdDateTime( "1600-02-29T7:17:55Z").getCanonicalRepresentation()); }