Bookmark Topic Watch Topic
  • New Topic

How to get the timestamp from the File IO

 
mahesh lala
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Friends ,

Using java.io.File class with the method lastModified () retrieves the last modified file in long ie milliseconds since the epoch (00:00:00 GMT, January 1, 1970) I want the time to be like the listing files of a directory in windows environment like 7/21/2005 12:17 PM . I mean to say I want to retrieve the date and time with the lastModified method of a java.io.File class..

your early response is highly appreciated and i shall be very thankful to you .

bye
Mahesh .
==============
 
Ryan McGuire
Ranch Hand
Posts: 1068
4
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a duplicate topic. Direct all replies to the I/O and Stream topic.
 
    Bookmark Topic Watch Topic
  • New Topic