title: javax.xml.datatype.Duration returns seconds only
body: <p>Why javax.xml.datatype.Duration.getMinutes() always returns 0 although the duration is incremented? If you run the code below longer than a minute you will see the output like this:</p>
  
  <pre><code>minutes: 0 , seconds: 61
  </code></pre>
  
  <p>I have never used this class before. Do I miss some basic knowledge about it?
  Here is the code:</p>
  
  <pre><code>import java.util.Timer;
  import java.util.TimerTask;
  
  import javax.xml.datatype.DatatypeConfigurationException;
  import javax.xml.datatype.DatatypeFactory;
  import javax.xml.datatype.Duration;
  
  public class TestDuration {
  
      class MyTimerTask extends TimerTask {
          DatatypeFactory df;
          long delay;
          Duration duration;
  
          public MyTimerTask(DatatypeFactory df, long delay) {
              this.df = df;
              this.delay = delay;
              duration = df.newDuration(0);
          }
  
          @Override
          public void run() {
              duration = duration.add(df.newDuration(delay));
              System.out.println("minutes: " + duration.getMinutes() + " , seconds: " + duration.getSeconds());
          }
      }
  
      public static void main(String[] args) {
          Timer timer = new Timer();
          final long delay = 1 * 1000;
          DatatypeFactory df = null;
  
          try {
              df = DatatypeFactory.newInstance();
          } catch (DatatypeConfigurationException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
          }
  
          MyTimerTask task = new TestDuration().new MyTimerTask(df, delay);
          timer.schedule(task, 0, delay);
      }
  }
  </code></pre>