users@jaxb.java.net

Re: Better xs:duration support?

From: Manish Sethi <msethi_at_noida.manystreams.com>
Date: Fri, 18 Jul 2003 10:12:47 +0530

Castor has duration class representing the xs:duration but I think long will
be sufficient enough for most of the apps

> -----Original Message-----
> From: Discussion list for the Java Architecture for XML Binding
> [mailto:JAXB-INTEREST_at_JAVA.SUN.COM]On Behalf Of Malachi de AElfweald
> Sent: Thursday, July 24, 2003 12:36 AM
> To: JAXB-INTEREST_at_JAVA.SUN.COM
> Subject: Re: Better xs:duration support?
>
>
> On Tue, 15 Jul 2003 17:22:44 -0700, Kohsuke Kawaguchi
> <Kohsuke.Kawaguchi_at_Sun.COM> wrote:
>
> >If you have any requirements on the duration support (e.g., how does
> >your program manipulate durations?), please let us know.
>
> I am using it to specify a repeating interval. Basically, I have
> a dateTime for "start" (which comes in as a Calendar object), and
> a duration for "repeat". So, I think a long works best for my
> case as well... Then I could use the Calendar's add function, or
> use the Timer's scheduling.
>
> Malachi
>