ModificationTime - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


FileTools

  

ModificationTime

  

obtain the modification time of a file

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

ModificationTime(file,opts)

Parameters

file

-

filename or the file descriptor of an open file

opts

-

(optional) one or more of the options described below

Options

• 

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.

Description

• 

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.

Examples

FileToolsTextWriteFilefile,data

4

(1)

FileToolsModificationTimefile

1037134620

(2)

FileToolsRemovefile

Compatibility

• 

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

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]