Discuss this help topic in SecureBlackbox Forum

TElCustomFileSystemAdapter.FileSetTimes

TElCustomFileSystemAdapter     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Sets file creation, modification and access times.

Declaration

[C#/Java]
    int FileSetTimes(string Path, DateTime CreationTime, DateTime ModificationTime, DateTime LastAccessTime);

[VB.NET]
    Function FileSetTimes(ByVal Path As String, ByVal CreationTime As DateTime, ByVal ModificationTime As DateTime, ByVal LastAccessTime As DateTime) As Integer

[Pascal]
    function FileSetTimes(const Path : string; CreationTime, ModificationTime, LastAccessTime : TDateTime) : integer; virtual;

[C++]
    int32_t FileSetTimes(const std::string &Path, int64_t CreationTime, int64_t ModificationTime, int64_t LastAccessTime);

[PHP]
    integer FileSetTimes(string $Path, DateTime $CreationTime, DateTime $ModificationTime, DateTime $LastAccessTime)

Parameters

  • Path - path to the file which times should be changed.
  • CreationTime - specifies new file creation time.
  • ModificationTime - specifies new file modification time.
  • LastAccessTime - specifies new last access time for the file.

Return value

    Returns a VFS error code.

Possible values:


Description

    Use this method to change different system times for the specified file.

See also:     FileGetTimes    

Discuss this help topic in SecureBlackbox Forum