WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

File.prototype.created()

Get/set a file’s creation timestamp.

Syntax

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

Parameters

timestamp uint32

The file’s new creation timestamp.

Description

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

Examples

The timestamp is fixed for the sandbox environment below.

Advancing the creation timestamp updates the modification time as well.

Winding back the creation timestamp does not modify the modification timestamp.