• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date of file

 
Luis Fernandes
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a folder that contain on hundred files, and i want to know when each file was moved to this folder.

I need to know what is the date of creation of each file.

I try the method but this return me a string like : 1193067735994


can someone help me ?

regards
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the API, this method returns "A long value representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970)". Compare this to the description for the new Date(long) constructor - the long value there has the same meaning. (It's also used in System.currentTimeMillis().) This means that you can construct a new Date using this value:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic