File.prototype.modified()

Get/set a file’s last modification timestamp.

Syntax

// Get file.modified() uint32 // Set file.modified(timestamp uint32) File

Parameters

timestamp uint32

The file’s new last modification timestamp.

Description

Get/set a file’s last modification time in form of a UNIX timestamp.

Examples

The time is fixed for the sandbox environment below.

Advancing the modification timestamp.

Winding back the last modification timestamp to before the creation time is invalid.

Subscribe to our newsletter!