• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting time, milliseconds to seconds, minutes, hours

 
James Pacino
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 4181
21
IntelliJ IDE Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
James Pacino
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oooo, change it to convertMillis .
 
Winston Gutkowski
Bartender
Pie
Posts: 9497
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic