File.GetModificationTime

Syntax:

GetModificationTime()

Returned value:

Type: Date.
Local last modification time of the file.

Description:

Receives 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 and directories 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 contains the local time of the last modification of the file with an NTFS error. If the file was changed in the summer, and is browsed in winter, then 1 hour is added to the obtained time. If the file was changed in the winter and is browsed in the summer, then 1 hour is substracted from the obtained time.
If the compatibility mode is Version8_2_13 or above, then the time is obtained without any errors.

Example:

Selection = New File(FileName);
If 
Selection.GetModificationTime() < BorderDate  Then
    Selection.SetModificationTime(BorderDate );
EndIf
;

See also:

File, method BeginGettingModificationTime

    

1C:Enterprise Developer's Community