commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diana Teplits" <>
Subject [NET] - getTimestamp() method nullifies seconds and milliseconds
Date Tue, 07 Mar 2006 13:46:11 GMT

I'll appreciate your help with the following problem:

My program is supposed to connect to ftp server from ftp client and get
files from predefined directory.
It works except one thing: 

FTPClient ftp = new FTPClient();
FTPFile[] filesArr = ftp.listFiles();
FTPFile ftpFile = filesArr[0];
Calendar date = ftpFile.getTimestamp();

Seconds and milliseconds inside date object have zero values instead of
the correct values.
Is there any way to get ftp file lastModified date including seconds and


I tried to use FTPClientConfig.setRecentDateFormatStr(..) in order to
solve this problem, but didn't succeed...


Thanks in advance,



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message