Dashboard_avatar
Jun 15, 2012
Post id: 310175 Report Item

Is it possible to get a file's timestamp from within mel in windows?
I'm using fileList to return lists of files, but can't find anything in the maya doc to get a timestamp.

Dashboard_avatar
Jun 20, 2012
Post id: 310197 Report Item

I found a way, if anyone needs.  clunky but works.

string $str = `system ("dir " + $filepath)`;
string $date = `match "../../...." $str`;
string $time = `match "..:.. [AP]M" $str`;   //$time = "11:15 AM";

you can then reformat date and time at your leisure using string functions....