Mozilla.com

Table of contents
  1. 1. modDate
    1. 1.1. Method of
    2. 1.2. Syntax
    3. 1.3. Parameters
    4. 1.4. Returns
    5. 1.5. Example
Table of contents
  1. 1. modDate
    1. 1.1. Method of
    2. 1.2. Syntax
    3. 1.3. Parameters
    4. 1.4. Returns
    5. 1.5. Example

modDate

Returns the last modified date of a specified file or directory.

Method of

File object

Syntax

double modDate ( FileSpecObject NativeFolderPath );

Parameters

The modDate method has the following parameters:

NativeFolderPath
A FileSpecObject representing the queried file.

Returns

A double number representing the date that the file was last modified.

Example

f = getFolder("Program");
fileSource = getFolder(f, "myfile.txt");
err = File.modDate(fileSource);

See modDateChanged for an example of comparing the dates of two files.

Languages

Page last modified 18:34, 13 Apr 2007 by Fredchat

Tags:

Files (0)