Implementing Duration abstract class
<p>I am writing a program where I am supposed to use the <a href="http://download.oracle.com/javase/6/docs/api/javax/xml/datatype/Duration.html" rel="nofollow">javax.xml.datatype.Duration</a> class. This class is an abstract class and I am supposed to use this class and its abstract methods to get the time and date. Can someone please explain how to use this class in my program.</p>

<p>There is a function called <code>getsubscriptions()</code> which takes a <code>Duration</code> as a parameter. Can you please tell me how to use an abstract class as a parameter in the function.</p>
