aspose file tools*
The moose likes Beginning Java and the fly likes Converting time, milliseconds to seconds, minutes, hours Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting time, milliseconds to seconds, minutes, hours" Watch "Converting time, milliseconds to seconds, minutes, hours" New topic
Author

Converting time, milliseconds to seconds, minutes, hours

James Pacino
Greenhorn

Joined: Apr 29, 2012
Posts: 3
Hi so I am trying to get this to work, but I am getting an error that says cannot find symbol for 'convert'. I also think my math is off under the string convertMillis. I am at the end of my knowledge, so any help?

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

James Pacino wrote:


The error occurs on this line because you do not have a method named convert. How do you fix that, do you think?


Steve
James Pacino
Greenhorn

Joined: Apr 29, 2012
Posts: 3
oooo, change it to convertMillis .
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8427
    
  23

James Pacino wrote:oooo, change it to convertMillis .

And change your class name to ConvertMillis (see here - although I don't agree with everything in it myself - or here, to get it from the horse's mouth).

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting time, milliseconds to seconds, minutes, hours