Keep your Longs as millisecond UTC timestmaps and you should be ok.
That being said, it does make sense to keep your time information in
time-specific objects. To use scala-time add the following to the
dependencies section of your POM:
<!-- for scala-time -->
<dependency>
  <groupId>org.scala-tools</groupId>
  <artifactId>time</artifactId>
  <version>2.7.4-0.1</version> <!-- FIXME: Using version for Scala
2.7.4! -->
</dependency>

As I mentioned in your original thread about time, Jorge hasn't
compiled scala-time for the latest versions of Scala but I found that
the 2.7.4 version worked.

Peter

On Feb 26, 10:14 am, Jim Barrows <[email protected]> wrote:
> On Fri, Feb 26, 2010 at 11:12 AM, Hannes <[email protected]> wrote:
> >  I swear that I ONLY use it to compare "if things are older than other
> > things". I think comparison of long values is faster than string or date
> > comparison, or?
>
> In what timezone?  and for what calendar?
>
>
>
>
>
>
>
> > thanks.
>
> > On Fri, Feb 26, 2010 at 10:52 AM, Hannes <[email protected]> wrote:
>
> >> THANKS!
>
> >> You saved my weekend....
>
> > You're welcome.
> >  On the other hand.... using a Long as a date terrifies me, and makes me
> > think your weekend, and the next three are all toast... but, maybe
> > not.......
>
> >>  On Fri, Feb 26, 2010 at 10:43 AM, Hannes <[email protected]> wrote:
>
> >>> Jim,
>
> >>> Thanks that helped!
>
> >>> Maybe its to late, or I don't know what, but.....
>
> >>> Its a bit complicated to use I think. What's about scala-time? For my
> >>> purpose, I just need the the time as a number (e.g. long). How do I do 
> >>> that?
>
> >> java.util.Date will give it to you.
>
> >>> thanks.
>
> >>> In what fashion do you mean integrate?
> >>> Adding this:
>
> >>> <dependency>
> >>>     <groupId>joda-time</groupId>
> >>>     <artifactId>joda-time</artifactId>
> >>>     <version>1.6</version>
>
> >>> </dependency>
>
> >>>  to the dependency section to your maven POM will bring in the jar files.
>
> >>> On Fri, Feb 26, 2010 at 10:14 AM, Hannes <[email protected]> wrote:
>
> >>>> Hi Peter,
>
> >>>> I read your mail, maybe you can help me. I'm wondering how I can
> >>>> integrate JodaTime or scala-time into my project.
>
> >>>> thanks.
> >>>> Hannes
>
> >>>>> This is more a question for Jorge than anyone else but since it's Lift-
> >>>>> related I thought I'd put it here:
>
> >>>>> What's the easiest way to add scala-tools to my Lift project's
> >>>>> pom.xml? My knowledge of Maven is very limited, but I hope that it is
> >>>>> simply a matter of adding another repository and dependency.
>
> >>>>> Thanks,
> >>>>> Peter Robinett
>
> >>>>> --
>
> >>>>> 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]<liftweb%[email protected]
> >>>>>  >
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/group/liftweb?hl=.
>
> >>>> --
> >>>> 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]<liftweb%[email protected]
> >>>>  >
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/liftweb?hl=en.
>
> >>> --
> >>> James A Barrows
>
> >>> --
> >>> 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.
>
> >>>   --
> >>> 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]<liftweb%[email protected]
> >>>  >
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/liftweb?hl=en.
>
> >> --
> >> James A Barrows
>
> >> --
> >> 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.
>
> >>    --
> >> 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]<liftweb%[email protected]
> >>  >
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/liftweb?hl=en.
>
> > --
> > James A Barrows
>
> > --
> > 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.
>
> >  --
> > 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]<liftweb%[email protected] 
> > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> James A Barrows

-- 
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.

Reply via email to