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/1 Benoit Xhenseval <[EMAIL PROTECTED]>: > Hi *, > > > > 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'… > > > > Many thanks > > > > Best regards from London, > > > > Benoit > > > > ------------------------------ > > IMPORTANT NOTICE > > This communication contains information that is considered confidential and > may also be privileged . It is for the exclusive use of the intended > recipient(s). If you are not the intended recipient(s) please note that any > form of distribution, copying or use of this communication or the > information in it is strictly prohibited and may be unlawful. If you have > received this communication in error please return it to the sender and > delete the original. > > > > ------------------------------------------------------------------------- > 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 > > ------------------------------------------------------------------------- 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