aspose file tools
The moose likes Beginning Java and the fly likes file.lastModified() question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "file.lastModified() question" Watch "file.lastModified() question" New topic
Author

file.lastModified() question

Serban Alex
Greenhorn

Joined: Nov 14, 2006
Posts: 7
I want to convert the return value in a "human readable value"
Is there any function to convert to that form?

Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

"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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: file.lastModified() question
 
Similar Threads
add 10 days to currentDate in java.util.Date or cast to Calendar?
back ground process id ??
calendar to date and timezone
'07/01/2010' could not be understood as a date.
unable to retrieve timestamp in my servlet