velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: [Vel-Tools] Converting a long return type into a formatted Date
Date Thu, 06 Jan 2005 20:39:53 GMT
Nathan Bubna <nbubna@gmail.com> wrote:
> in VTL, long and Long are the same.  have you tried just using
> DateTool.toDate(Long) with the long?

Just tried it, and it works fine.

I didn't realize that primitive types would convert like that inside nested 
method calls.  I figured (wrongly) that primitive-to-object conversions 
would only take place on the outer-most call when the value was actually 
rendered.

Thanks!

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message