FileTools
ModificationTime
obtain the modification time of a file
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
ModificationTime(file,opts)
file
-
filename or the file descriptor of an open file
opts
(optional) one or more of the options described below
output=integer or date
Specifies whether the output should be an integer (representing the number of seconds after the epoch) or a Date object. The default is integer.
The ModificationTime(file) command obtains the modification time of a file in seconds since the epoch.
If the file does not exist or an invalid file descriptor is passed, an exception is raised.
FileToolsTextWriteFile⁡file,data
4
FileToolsModificationTime⁡file
1037134620
FileToolsRemove⁡file
The FileTools[ModificationTime] command was updated in Maple 2018.
The output option was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Date
file_types
FileTools[Exists]
FileTools[IsDirectory]
FileTools[IsExecutable]
FileTools[IsReadable]
FileTools[IsWritable]
FileTools[Remove]
FileTools[Size]
FileTools[Status]
FileTools[Text][Close]
FileTools[Text][WriteString]
IO_errors
StringTools[FormatTime]
Download Help Document