class Duration implements Cloneable, Serializable, Comparable<Duration>, JAXBable<JAXBDuration> {

    public Date asDate()
    {
        Milliseconds millis = Milliseconds.get(this);
        if (millis.compareTo(new Milliseconds(Long.MAX_VALUE)) >= 0)
        {
            return new Date(Long.MAX_VALUE);
        }
        return new Date(millis.longValue());
    }

    public  Duration(BigDecimal magnitude);
    protected  Duration(long unscaledMagnitude, int scale);

}