Jean-Marie Dautelle wrote:
First, let me introduce myself (I am new to this list, thanks Stephen for
subscribing me). I am the JScience project owner (http://jscience.org) and
currently looking into integrating Joda calendars into JScience
(org.jscience.history.calendars). JScience provides the current JSR-275
baseline for javax.units/javax.quantities which might be of interest to
Joda-Time (e.g. Quantity<Duration>).
With regard to the question below, I believe that JScience measures
modules might be of some help. Hence, the following question: How
Joda-Time and JScience may collaborate/work together in the future. Do you
want to include the measures module to Joda-Time? How JScience can
integrate Joda calendars? etc...
Welcome Jean-Marie. The JScience project is interesting in that it kind
of abuts Joda-Time in its attempt to enhance core-Java. There is
currently the one area of overlap, and that is with duration definitions.
Having looked at the API of JScience, it would seem that the definition
of a duration there is notably differently to a Joda-Time definition
however.
A day in JScience always equals 24 hours, and an hour always equals 60
minutes etc. In Joda-Time these things are not true. Our definitions for
each component of time is much more vague. Plus, one key selling point
of Joda-Time is that it has no dependencies, so we couldn't link to
JScience anyway.
Could JScience include Joda-Time calendars? Well possibly. JScience
could write a wrapper around all the Joda-Time date and time classes
such that the wrapper implemented the appropriate JScience quantity and
similar APIs. However, this would be a lot of effort for very little
gain IMHO.
What JScience could bring to Joda-Time is experience converting a JDK1.3
API to a JDK1.5 API - ie. adding generics. My hope is that a generics
(JDK1.5+) branch to Joda-Time can be started before too long.
Stephen
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest