Product Logo

SMTPit Pro

A Feature-rich Email plug-in

Functions

SMTPit_File_Timestamp

NameSMTPit_File_Timestamp
Description

Returns the modification, or optionally the creation, timestamp of a file.

Return TypeText
FormatSMTPit_File_Timestamp ( File ; CreationTimestamp )
Required Parameters
File

The path and file name of the file you need the timestamp of.

Optional Parameters
CreationTimestamp

If True, return the creation timestamp instead of the modification timestamp.

Examples
Example 1

Returns the modification timestamp of the "data.txt" file on Mac.

SMTPit_File_Timestamp ( "~/Desktop/Data.txt" )
Example 2

Returns the modification timestamp of the "data.txt" file on Windows.

SMTPit_File_Timestamp ( "C:\Users\Bob\Desktop\Data.txt" )
Example 3

Returns the creation timestamp of the "data.txt" file on Windows.

SMTPit_File_Timestamp ( "C:\Users\Bob\Desktop\Data.txt" ; True )