This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes System Time with Milliseconds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "System Time with Milliseconds" Watch "System Time with Milliseconds" New topic
Author

System Time with Milliseconds

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

This is how I "think" I am getting the current time with milliseconds.

The format I need is simpley HourHourMinutesMinutesSecondsSecondsMillisecondsMilliseconds.
But I am not sure that my SimpleDateFormat is correct. Can someone verify?
Thanks.
[ March 23, 2004: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Looks like it should be "HHmmssSS"
SDF api
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Cool, thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: System Time with Milliseconds
 
Similar Threads
date arithmetic
Displaying seconds in hh:mm:ss format
Simple question about reloading Date Variable..
help me in time comparison
How do i print 1 as 01?