Setting OS date and time from EXIF data

I have a script which extracts the EXIF creation time from an image and sets the file date and time to this.

This works nicely, but I wondered whether this was directly possible when exporting the image. Regulars will know that I used DT.

you can use variables on export: see darktable user manual - variables

I don’t think @epeeist wants to change the filename, rather the actual modification(?) time of the file.
And as that’s an OS function, I don’t think that can be done within DT (perhaps it’s possible with a lua script)

1 Like

Exactly that, the aim is to ensure that an “ls” commands lists the files in the order that the image was taken, rather than when they were placed on the disc.

If the files are already renamed to the datetime taken, and you export them keeping the same base filename, then they will sort in order automatically.

2 Likes