Yep, the consensus seems to be that you should use JodaTime (and scala- time). You can use scala-time with Maven (URL: http://scala-tools.org/repo-releases/org/scala-tools/time/) but it was compiled with Scala 2.7.4. However, I didn't have any noticeable problems running it on 2.7.7.
Peter On Feb 22, 10:41 am, Hannes <[email protected]> wrote: > Hi Peter, > > Thanks in advance. > > I was browsing through the list and read, that there's a lot of problems > with the Java stuff. That's why I asked. I'll have a look at this > JodaTime thing... > > thanks. > > > > > Hi Hannes, > > > Jonathan's suggestion of MappedDateTime is a good one and one that I > > have used. However, I haven't been super happy about how time is > > handled by, in my case, MappedDateTime + java.util.Date + MySQL > > Datetime. I played around a little with making a MappedField that > > holds a ScalaTime (ie JodaTime) object that would be persisted in a > > database as a millisecond UTC timestamp but didn't get very far with > > it. I believe if you look through this mailing list you'll find > > someone else (sorry, I forget who!) talking about basically doing just > > this and sharing some code. Anyway, just another possible approach... > > > Peter > > > On Feb 21, 10:59 am, Jonathan Hoffman <[email protected]> wrote: > > >> Does MappedDateTime do what you want? > > >> Also look at MappedEnum for the status > > >> On Feb 21, 2010, at 6:07 AM, Hannes wrote: > > >>> Hi Lifters, > > >>> I'm using Mapper with Lift 1.1-M7 and I need to have some information > >>> about time. > > >>> Especially I wanna store a time-stamp for a status field that can have > >>> three values: NEW; OPEN; CLOSED; > > >>> So, what I thought about was defining two new fields open_time and > >>> close_time that I'd use to filter/sort items. > > >>> thanks for any ideas! > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Lift" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group > >>> athttp://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
