LocalTime has a method getMillisOfDay().
sql Time has a constructor taking millis.
Use the two together :-)

Stephen


On 12 August 2010 18:25, Juan Francisco Ottonello <jf.o...@gmail.com> wrote:
> Hi, I'm in my first steps with joda time and I really like to have such a
> good option to Date and Calendar.
>
> I've seen some tutorials and made some PoC and it works perfect. What I
> can't find in the docs and searching is how to persist LocalTime using JDBC.
> I'm using postgre and have some 'time' fields, but as far as I undersend, a
> Time obj have to be given to the JDBC API. Is there a way to convert a
> LocalTime obj to a java.sql.Time equivalent? If not, some workaround or
> idea?
>
> I hope to see the JSR-310 in the JDK, is nice to see how good projects
> influence the evolution of the language.
>
> Thanks in advance!
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to