Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in Java FTP by (200 points)
Hi friends,

when I am downloading files from FTP server to local system, the files stored with modification datetime changed to system datetime.
My requirement is to get the last modification datetime(FTP server files).
I noticed there is a function 'lastModified()', which returns only the date. But I need the timestamp as well.

Can anybody help on this??

Thanks in advance

1 Answer

0 votes
by (162k points)
lastModified() returns a Date object, which is in fact a timestamp in Java. If the Date objects being returned don't have hours, minutes and seconds, it is because your server isn't returning them.

Categories

...