[Canberra-pm] Most efficient way to find the ISO 8602 date of a the most recently modifiec file in a directory

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Wed May 3 18:41:51 PDT 2006


Hi All,

I am trying to find the date of the most recently modified file in a
directory.  I thought that someone should have done this already.  I have
been looking into:

Date::Calc(Time_to_Date)
File::stat
localtime

but if someone has already done this can I please have your code?

The output should be in ISO 8601 format.  IE, 2006-05-04T11:21:20  This
latter part I can easily do with printf.

Thanks.


John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/ 
john.hockaday\@ga.gov.au


More information about the Canberra-pm mailing list