示例#1
0
 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;
 }
示例#2
0
 public void setMillisecond(int millisecond) {
   calendar.setMillisecond(millisecond);
 }