java - How to convert String timestamp to milliseconds -


i running 1 query on oracle sql returns me timestamp part of of sysdate in string "16:30:0.0" want know how convert milliseconds.

please help?

this using standard java date api.

dateformat df = new simpledateformat("hh:mm:ss.sss"); df.settimezone(timezone.gettimezone("utc")); df.parse("16:06:43.233").gettime(); 

if you're using java 8, see new java.time api. if not, , you're going lot of date-time-related work, see jodatime


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -