how to read the timestamp of file

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

 Réponse acceptée

Jan
Jan le 30 Jan 2013
Modifié(e) : Jan le 30 Jan 2013
Do you mean the date of the last file access?
D = dir('*.xls');
TimeStamp = {D.date};
% Or:
TimeStamp = [D.datenum];

7 commentaires

Mary
Mary le 31 Jan 2013
Thank you Jan. It works.
Mary
Mary le 31 Jan 2013
Hi Jan I want to read the timestamp of 20 laser data (data.csv) and 20 images (image.jpg). I want to read the date and time of these files when they were taken and saved.
Jan
Jan le 31 Jan 2013
Do you mean the file creation date or the EXIF information in the JPEG file?
Mary
Mary le 4 Fév 2013
Hi Jan and thank you for your support. I mean the timestamp of the file creation . Could you please tell me what do you mean by the EXIF information in the JPEG file? your help is highly appreciated
Jan
Jan le 4 Fév 2013
You find an exhaustive description of the EXIF data by asking Google or searching at WikiPedia: It is the header of JPEG files, which is written by the camera and not influenced by any file operations on the processing computers (except for clearing the EXIF header, of course).
If you are working under Windows, you can use http://www.mathworks.com/matlabcentral/fileexchange/24671-filetime.
Mary
Mary le 6 Fév 2013
Hi Jan. Thanks again. Do you know how I can get the filename suffice?
Jan
Jan le 6 Fév 2013
What does "the filename suffice" mean?

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by