velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: how to compare the time in Velocity?
Date Mon, 02 Sep 2002 12:57:37 GMT
On 9/1/02 11:00 PM, "James Wang" <> wrote:

> i got two time objects from  velocity template,and
> i want to compare them in velocity,what can i do?
> it seem i cant do such things!
> do i have to compare it in Modules part in MVC?

Well, it depends on what kind of time objects.  The java.util.Date class has
a getTime() method, but those return longs (and Vel doesn't do longs).

The best bet is to add a compare function to the time class or a comparison
tool into the context

Geir Magnusson Jr. 
Research & Development, Adeptra Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message