Adobe 38040334 - Dreamweaver CS3 User Manual page 15

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument, which is expressed as a file:// URL, is the file for which you are checking the creation
fileURL
time.
Returns
A string that contains a hexadecimal number that represents the number of time units that have elapsed since some
base time. The exact meaning of time units and base time is platform-dependent; in Windows, for example, a time
unit is 100ns, and the base time is January 1st, 1600.
Example
You can call this function and the
date to the creation date:
var file1 = "file:///c|/temp/file1.txt";
var time1 = DWfile.getCreationDate(file1);
var time2 = DWfile.getModificationDate(file1);
if (time1 == time2){
alert("file1 has not been modified since it was created");
}else if (time1 < time2){
alert("file1 was last modified on " + time2);
}
DWfile.getCreationDateObj()
Availability
Dreamweaver MX.
Description
This function gets the JavaScript object that represents the time when the file was created.
Arguments
fileURL
• The
argument, which is expressed as a file:// URL, is the file for which you are checking the creation
fileURL
time.
Returns
A JavaScript
object that represents the date and time when the specified file was created.
Date
DWfile.getModificationDateObj()
Availability
Dreamweaver MX.
Description
This function gets the JavaScript
Arguments
fileURL
• The
argument, which is expressed as a file:// URL, is the file for which you are checking the time of the
fileURL
most recent modification.
DWfile.getModificationDate()
object that represents the time when the file was last modified.
Date
function on a file to compare the modification
DREAMWEAVER CS3
10
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents