}
// TODO: explain what this test has to do with "DecimalTest"???
public void testDuration(){
Calendar calendar = Calendar.getInstance();
Duration duration = new Duration(false,0,0,23,12,24,23.45);
System.out.println("Duration ==> " + duration.toString());
// P2007Y5M30DT8H40M55.87S
// "\\-?P(\\d*D)?(T(\\d*H)?(\\d*M)?(\\d*(\\.\\d*)?S)?)?"
if (duration.toString().matches("\\-?P(\\d*D)?(T(\\d*H)?(\\d*M)?(\\d*(\\.\\d*)?S)?)?")){
System.out.println("Matches");
}
}