db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Henry <he...@hta-bi.bfh.ch>
Subject Re: Oracle and Dates...
Date Sat, 20 Dec 2003 21:33:03 GMT
Jarnot Voytek Contr AU HQ/SC wrote:

>have you tried just passing the Date object to the setter?
>
>  
>
Thank you but that's what I am doing : the getTime method of Calendar 
returns a Date object.
I just use the Calendar to modify the date created initially.

Actually I didn't know the setTimeMillis method of Calendar, so what I 
am doing is :

Calendar c = new GregorianCalendar();
c.setTimeMillis(System.currentTimeMillis());
//do something with the calendar...
...

Projection proj = new Projection();
proj.setPDate(now.getTime());
...
proj.save();


Pierre Henry


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


Mime
View raw message