commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derick Fernando <deri...@thelabllc.com>
Subject Re: [Net]Getting timestamp of 2005 instead of 2006 in FTPFile
Date Fri, 24 Mar 2006 19:40:11 GMT
Hello,

The FTP protocol does not support setting timestamps on remote machines, 
  so the 2006 timestamp is created when the file is created on the 
remote machine.

Mahesh.Trikannad@donovandata.com wrote:
> 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
> 
> __________ NOD32 1.1275 (20051103) Information __________
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
> 
> 


-- 
.........................................

Derick Fernando
Lead Architect
derickf@thelabllc.com
(323) 314-9593
http://www.thelabllc.com

Content is for intended recipient only.
Copyright 2001-2005, The Lab, LLC

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message