This is a feature that is in the works for JSR-310. I don't have much
time for Joda-Time these days, so haven't got any immediate intentions
of adding it there.
Stephen

2008/7/4 Benoit Xhenseval <[EMAIL PROTECTED]>:
> Do you think it would be a good addition to JODA?
> When scheduling things, it is important in our domain to say "this should
> happen at 14:00 London time"
> We should also be able to compare "Now" with a time including a TZ..
>
> I can see that the combination LocalTime + DateTimeZone might work.
> Comparison with Now could be done:
> DateTime dt = myLocalTime.toDateTimeToday(myDateTimeZone);
> DateTime now = new DateTime();
>
> now.isAfter(dt)...
>
> That would work I believe, but is it the best way?
> Benoit.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Stephen Colebourne
> Sent: 04 July 2008 10:41
> To: [EMAIL PROTECTED]
> Subject: Re: [Joda-interest] nothing archived...
>
> Joda-Time does not have an ideal class for storing this. You can
> either create your own class holding a LocalTime and a DateTimeZone,
> or use a DateTime with a fixed known date (such as 1970-01-01).
>
> You could also subclass BaseDateTime and override the method that is
> called in the constructor that can enforce restrictions (see
> DateMidnight).
> Stephen
>
> 2008/7/3 BenoitX <[EMAIL PROTECTED]>:
>> I need to represent a Time (24h clock) but with a TimeZone.  I am using
>> Joda-time 1.5.
>>
>> Which entity is the most suited given that I need to store in Oracle via
>> Hibernate and also have some kind of widgets in a Swing application to
>> change that time. (anybody willing to share???)
>>
>> That time will have to be compared with a Time "now".
>>
>> Should I use DateTime? But I do not need the 'date'.
>> Should I use LocalTime AND a DateTimeZone (in order to create a swing
> widget
>> to handle both separately).

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to