There is no Milliseconds class because Duration models time in 
milliseconds. The latest SVN has more methods to convert between the 
different types if I remember correctly.

Stephen


Matt Hughes wrote:
> One of my programming bugbears is when coders use a primitive such as 
> 'int' to represent some unit of time so I was pleased when I found the 
> Period class in joda-time but dismayed to find no milliseconds support.
> 
> Why is there no Milliseconds class to parallel all the others (Seconds, 
> Hours, Days, etc).  My code base interacts with many APIs that expect 
> their timeouts to be in milliseconds.  What I would like to do is pass 
> around a Period instance for as long as I can until I bump up to one of 
> those APIs and convert that value into milliseconds.  Is there any 
> reason that class couldn't be added and the added 
> toStandardMilliseconds?  I'd be happy to submit a patch.
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to