commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahesh.Trikan...@donovandata.com
Subject [Net]Getting timestamp of 2005 instead of 2006 in FTPFile
Date Fri, 24 Mar 2006 19:30:37 GMT
Hi,

I use the FTPClient of the commons net library.  I do listFiles and get 
the timestamp of the file iam interested in. The timestamp shows 2005. 
The file is uploaded to a linux box and it shows 2006  ( I used the approp 
option in ls ).

Here is the relevant code --

FTPFile[] files = listFiles();
                        for (int i = 0; i < files.length; i++) {
retCal = files[i].getTimestamp();



System.out.println("YEAR IN TSTAMP:"+tStamp.get(Calendar.YEAR));


Am I missing something

Thanks

Mahesh
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message