This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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