XsdDate extends Datatype<GregorianCalendar> { public String getCanonicalRepresentation() { return Iso8601Parser.getCanonicalRepresentation(getValue(), true, true, true, false, true); } XsdDate(String s); GregorianCalendar getValue(); String getCanonicalRepresentation(); static final Resource DT; }
@Test public void test() throws DatatypeParseException { assertEquals("-1543-12-12-05:41", new XsdDate("-1543-12-12-5:41").getCanonicalRepresentation()); }