Syntax:

SETFILETIME(location,file,new_modification_time)

  • location: Set it to one of the following values.
    LOCAL The file in the next parameter is a local file.
    REMOTE The file in the next parameter is a file located in the FTP server.
  • file: The file to apply the new modification time. This parameter can optionally include a path.
  • new_modification_time: The new file modification time in the format YYYY_MM_DD-hh_mm_ss. This is the FORMAT0 returned by GETTIME

See also:

GETFILETIME
GETFILESIZE

Examples:

#Set local file test.txt modification time to 08/05/2009 - 16:00:00.
SETFILETIME(LOCAL,"test.txt","2009_05_08-16_00_00")
 
# Set remote file test.txt modification time to the current modification time
$now=GETTIME()
SETFILETIME(REMOTE,"test.txt",$now)
 
# Change the file modification time of the remote file test.txt
# located in the remote directory mysubdir to the current time
# adding one hour
$now=GETTIME()
SETFILETIME(REMOTE,"/test/test.txt",$now+3600)