> I need to store a time with a timezone but I can't work how best to do
> this with joda-time. I'd like something that corresponds with
> LocalTime in the way that DateTime corresponds with LocalDateTime, but
> can't work out the best class to use.

I don't believe such a class exists, and I expect it's because it's
not the kind of thing that people are likely to use much.  Without a
date, you don't know what the offset of a time zone is, so mixing it
with a LocalTime doesn't give you a result that you can do much more
with than the LocalTime can do on its own (eg, you still can't
transform it into the same time in another timezone).

So, I think your best bet would be to create your own wrapper class
that contains a LocalTime and a DateTimeZone, along with whatever
methods you need.

- Adam

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to