Recover time info from a file

Hello there! :slightly_smiling_face:
I’m quite new to TD and I’m trying to figure out how to approach this quite “simple” dilemma.

On my TD project, I have a section that took pictures from a cam every x minutes and stored them in an external folder.
In the same patch I randomly select one of these pictures and display them on my output, what I need to recover from every picture is the time info of when the file has been created.

Once I have this info I’ll then need to print it back in another section of the patch, as times elapsed from the present time.

Do you have any leads?

It will be really appreciated :sweat_smile:

Thanks!

If you’re comfortable with Python, there are plenty of ways you might do this with os or pathlib.

If you want a more node friendly approach, you could save EXR files, and use the feature in the moviefile out TOP to write header data into an image. This can then be read easily with an info DAT: