Product Logo

CNS Menu

Dynamic Menus

Functions

CNSMenu_File_Timestamp

NameCNSMenu_File_Timestamp
Description

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

Return TypeText
FormatCNSMenu_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.

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

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

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

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

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