private static XMLGregorianCalendar stripCalendar(XMLGregorianCalendar calendar) { calendar = (XMLGregorianCalendar) calendar.clone(); calendar.setYear(DatatypeConstants.FIELD_UNDEFINED); calendar.setMonth(DatatypeConstants.FIELD_UNDEFINED); calendar.setHour(DatatypeConstants.FIELD_UNDEFINED); calendar.setMinute(DatatypeConstants.FIELD_UNDEFINED); calendar.setSecond(DatatypeConstants.FIELD_UNDEFINED); calendar.setMillisecond(DatatypeConstants.FIELD_UNDEFINED); return calendar; }
public void setMillisecond(int millisecond) { calendar.setMillisecond(millisecond); }