This is pretty weird. Instead of using Win32::Internet, perhaps Net::FTP will give better results? This is available as an Active State module if you are using that flavor of Windows Perl. The basic idea is the same but the method names are a bit different. $ftp->mdtm ( FILE )...Returns the modification time of the given file.

Other thoughts, ftp is a standard program on Win XP. At the command prompt, type "FTP" and hack around with that to get connected and list the remote directory. If that can show the seconds info from that server, then it is very likely that some Perl module can do it to. If not, then I am out of ideas for the moment.

Well I guess one more FTP way is to use the FireFTP plugin to Firefox. I use it exclusively for my interactive FTP needs nowadays (instead of the command line). It is an impressive add-on.

Update: I just logged into one SFTP site and there aren't any seconds, minutes is all I get. So, it may very well be that that's all that there is! I see a post from roboticus about this.


In reply to Re^3: mtime method dropping seconds by Marshall
in thread mtime method dropping seconds by Anchor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.