Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

fileTimeModified

fileTimeModified( 
t_filename 
) 
=> x_time / nil

Description

Gets the time a given file was last modified.

The return value is an internal, numeric, representation of the time the named file was last modified (for example, the number of seconds from January 1, 1970). The number, which is system-dependent, is derived from the underlying operating system. It can be affected by system environment variables and local machine setting based on the timezone. For more information on time-related settings, refer to the documentation of the operating system.

The return value is an internal, numeric, representation of the time the named file was last modified (for example, the number of seconds from January 1, 1970). The number, which is system-dependent, is derived from the underlying operating system.

Arguments

t_filename

Name of a file.

Value Returned

x_time

Last time t_filename was modified.

nil

No file with the given name was found.

Examples

fileTimeModified( "~/.cshrc" )
=> 787435470

Related Topics

getCurrentTime


Return to top
 ⠀
X