filedatenum

Returns the modification date (datenum) of a file
404 Downloads
Updated 24 Aug 2009

View License

Purpose: Returns the modification date (datenum) of a file
Usage: file_datenum = filedatenum('myfile.dat')
Author: Charles Plum, Varolii Corp, 21 August 2009

Not elegant but it works ...
Had to check for files in a loop ...
written in haste but really does the trick ...
could not find a similar Matlab function.

to get a more readable date just say ...
datestr(filedatenum('myfile.dat'))

Cite As

Charles Plum (2024). filedatenum (https://www.mathworks.com/matlabcentral/fileexchange/25120-filedatenum), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dates and Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0