Forum OpenACS Q&A: customizing footer - last update date

I am sorry if this has been asked again, I tried a search and didn't get any conclusive postings so here we go:
I want to add into the footer something like last updated on the $date. Now I want the procedure to take as the $date the date when index.tcl has been saved last for example. Is there a way to tell aolserver to do that, i.e to look into the properties of the file... or is there any way to get this implemented into the ad_footer properties?
Thanks
Collapse
Posted by Dave Bauer on

You need to use the file tcl command to get the modified time/date of the file. This is used in static-pages to determine if a file has changed.

For example:

set last_modified [file mtime "path/to/file"]

You will need to convert this to a readable time and date with clock format.