Thanks for the feedback. One of our specific intentions is to make the simple things easy, so perhaps we are not succeeding here. Certainly documentation could help. But we should also look at the API, as to be truly easy you shouldn't need documentation.
The problem is explaining the issue in the API. How do you easily communicate that a day might not be a fixed number of milliseconds (it may vary by zone, or by chronology). I am investigating adding new classes at the moment for each period type, such as a class for Days, and another class for Hours. Perhaps we could add a method to Days as follows (and other classes similarly): /** * Gets this period in days as a period in hours using standard lengths for the period. * The conversion uses a fixed length day of 24 hours. */ public Hours toStandardHours(); /** * Gets this period as a duration using standard lengths for the period. * The conversion uses fixed length conversions of 1 day is 24 hours, 1 hour is * 60 minutes, 1 minute is 60 seconds and 1 second is 1000 milliseconds. */ public Duration toStandardDuration(); Would this have helped your use case? Any other feedback? (from anyone on the list!) Stephen On 27/09/06, Jason Bennett <[EMAIL PROTECTED]> wrote: > Stephen Colebourne <scolebourne <at> joda.org> writes: > > > When you don't care about the base date (as in this case) you can just > > use new Instant(0L) or null. > > Appreciate the help. I don't suppose the documentation could be more explicit > about that? I think Joda has a lot of potential, but I don't feel like it > makes > the "easy things easy" (as Larry Wall might say). This is one of those use > cases > that are impossible in Java/Data/Calendar without lots of millisecond > calculations that a date/time library could really help with. > > jason > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
