how to read the timestamp of file

18 次查看(过去 30 天)
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

采纳的回答

Jan
Jan 2013-1-30
编辑:Jan 2013-1-30
Do you mean the date of the last file access?
D = dir('*.xls');
TimeStamp = {D.date};
% Or:
TimeStamp = [D.datenum];
  7 个评论
Mary
Mary 2013-2-6
Hi Jan. Thanks again. Do you know how I can get the filename suffice?
Jan
Jan 2013-2-6
What does "the filename suffice" mean?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by