how to read the timestamp of file

9 views (last 30 days)
Mary on 30 Jan 2013
I have 10 files with extention (.csv). I need to read the timestamp of each file (unix timestamp) and save them in one column in text file. Any help is greatly appreciated

Accepted Answer

Jan on 30 Jan 2013
Edited: Jan on 30 Jan 2013
Do you mean the date of the last file access?
D = dir('*.xls');
TimeStamp = {};
% Or:
TimeStamp = [D.datenum];
Mary on 6 Feb 2013
Hi Jan. Thanks again. Do you know how I can get the filename suffice?
Jan on 6 Feb 2013
What does "the filename suffice" mean?

Sign in to comment.

More Answers (0)


Find more on Environment and Settings in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!