I am reading the date a file was last modified. I have set this as a variable. I then run a process that modifies that date/time and I want to change it back.
The date format I am getting is 18/10/2002 11:25:00 (by reading the properties of a word file). I am planing to us utime to reset this date/time once I have changed the company name of the document.
The question would be are there better ways of getting the accessed date of the file already in this format?
use File::stat; seems promising?
Or how can I convert the date/time in the above format to the seconds after 1970 that utime required?
Thanks