Creation date (add switch to choose between file/MOI datetime)
Brought to you by:
baloan
Originally created by: geza@…
Finally someone reads the moi file.
I have some remarks. the mod file creation date is not the real value. Why dont you read the creation date from MOI. I saw that you can read it from file mddatetime
I made tha changes in my version but Im dont know píthon unfortunatly
so my filename looks like this:
mpg_fn = "MOV-%s.MPG" % mddatetime.strftime("%Y-%m-%d %H%M%S")
On my system (Panasonic SDR-S7, Windows XP) the MOD file time stamps and MOI time stamp are identical, only that the file stamp has a one second resolution. In order to avoid files with duplicate file name I chose to use the file time stamp.
Your change should work fine, albeit the second part will be zero always. MOI time stamp does not support second resolution.
I will add a switch to choose between file time stamp and MOI time in the next release.