It seems as though the existing apps cited above don't cover your concern about actually confirming that both remote and local hosts have the same idea about what time it is. Given that Net::FTP supports a "mdtm" function (to return the modification time of a file), but not a "date" function (to return the remote host's system date), if you have doubts about one or the other clock being a bit off, touching a file on the remote host is probably the only way to check that.
I'd be sure to get the local host's time-of-day both immediately before and immediately after creating the temp file on the remote host, so that I can take network latency into account. There could be other ways to query the remote host's clock, not using FTP at all (ssh for sure, don't know about others), but you'd always want to check for latency.
If the remote host is in a different time zone (or follows different rules about daylight savings), that might raise issues.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.