• Post Reply Bookmark Topic Watch Topic
  • New Topic

file.lastModified() question  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to convert the return value in a "human readable value"
Is there any function to convert to that form?

 
author and iconoclast
Sheriff
Posts: 24219
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"new java.util.Date(theValue).toString()" is the most direct way. There are plenty of other things you can do to have control over the format.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!