FtpModDate.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <html>
  3. <head>
  4. <title>FtpModDate</title>
  5. <link rel="stylesheet" type="text/css" href="doc.css">
  6. </head>
  7. <body>
  8. <h1>FtpModDate</h1>
  9. <p>Determine last modification time of a remote file.</p>
  10. <h2>SYNOPSIS</h2>
  11. <pre>
  12. #include &lt;ftplib.h&gt;
  13. int FtpModDate(char *path, char *buf, int max, netbuf *nControl);
  14. </pre>
  15. <h2>PARAMETERS</h2>
  16. <dl>
  17. <dt><b>path</b></dt>
  18. <dd>Name of remote file to be checked.</dd>
  19. <dt><b>buf</b></dt>
  20. <dd>A pointer to a buffer where the result should be returned.</dd>
  21. <dt><b>max</b></dt>
  22. <dd>Specifies the size of the user's buffer.</dd>
  23. <dt><b>nControl</b></dt>
  24. <dd>A handle returned by <a href="FtpConnect">FtpConnect()</a>.</dd>
  25. </dl>
  26. <h2>DESCRIPTION</h2>
  27. <p>FtpModDate() attempts to determine the last access time of a
  28. remote file and return it to the user's buffer. The date and time
  29. are returned as a string in the format 'YYYYMMDDHHMMSS'.</p>
  30. <h2>RETURN VALUE</h2>
  31. <p>If a good response is received and the date and time are
  32. successfully parsed out of the result, 1 is returned. Otherwise, 0
  33. is returned.</p>
  34. <p>Some servers may not support the MDTM command.</p>
  35. </body>
  36. </html>