You should be able to just pass the string to the constructor

new Duration(str);

Stephen


On 12/02/2010, Chad La Joie <laj...@itumi.biz> wrote:
> I see that the Duration class can produce the lexical representation of
> ISO8601 duration.  Is there a way to then parse that such strings and
> create a Duration?
>
> --
> Chad La Joie
> www.itumi.biz
> trusted identities, delivered
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to