title: Getting servers date using FTP
body: <p>I'm trying to get the date modified time of a file created on an FTP server using Python, I am currently using the ftputil external library and doing the following:</p>
  
  <pre><code>file_folder_time_stamp = time.strftime('%y%m%d%H%M%S', time.gmtime(host.path.getmtime(dir_or_file)))
  </code></pre>
  
  <p>Unfortunately, the return time I get is for the year 2013. Instead of 2014. I've made sure the server running the FTP server is updated to the current time. Doing a date command on the terminal, ensures I get the right time. Am I just parsing something incorrectly then?</p>
  
  <p>I create a folder, and check the time of creating using the getmtime command, and it still returns a string such as 13090810000. This should instead look like 140908xxxx</p>