This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Convert Hours to MilliSeconds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Convert Hours to MilliSeconds" Watch "Convert Hours to MilliSeconds" New topic
Author

Convert Hours to MilliSeconds

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
If I have a time like 2300 or 0500. How can I convert this to milliseconds in order to store this in a Calendar or Date Object?
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
hi:
please refer to:
http://www.zwhome.org/~asw/JNTimer/JNTimerMan.html
http://forum.java.sun.com/thread.jsp?thread=309898&forum=31&message=1240798
http://student.cs.ucc.ie/~jjm3/javadocs/ClockPackage/MilliSecond.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert Hours to MilliSeconds
 
Similar Threads
Milliseconds to date conversion
DATE/TIME
Converting millisecs to hour, minute, seconds.
Convert hh:mm:ss in millisecond
Converting Date Into Milliseconds?