File.SetModificationTime

Syntax:

SetModificationTime(<ModificationTime>)

Parameters:

<ModificationTime> (required)

Type: Date.
Local modification time specified for a file.

Description:

Establishes the last file modification time.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

Applies only to files that actually exist.
To use the method on the web-client, you should preliminarily attach the extension for working with files.
In compatibility mode it sets the local time of the last modification of the file with an NTFS error. If the file was changed in the summer, and is installed in the winter, then 1 hour is added to the specified time. If the file was changed in the winter and is installed in the summer, then 1 hour is substracted from the specified time.
If the compatibility mode is Version8_2_13 or higher, then the time is set without any errors.

Example:

Selection.SetModificationTime(CurrentDate());

See also:

File, method BeginSettingModificationTime

    

1C:Enterprise Developer's Community