Revision history for FileModificationTime
Revision [18599]
Last edited on 2008-01-28 00:12:17 by JasonHuebel [Modified links pointing to docs server]No Differences
Revision [10695]
Edited on 2005-08-15 16:17:57 by JasonHuebel [note about requests for feature enhancements]Additions:
If you find this action useful, post a comment and let me know! Also, feel free to comment with requests for feature enhancements. --JasonHuebel
Deletions:
Additions:
--JasonHuebel
Additions:
echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>";
Deletions:
Additions:
/*
filemtime action
Displays the modification time of a file
Syntax: {{filemtime path="/path/to/file"}}
*/
$path = trim($vars['path']);
if (file_exists($path)) {
echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>"
} else {
echo "<!-- ERROR (filemtime): '" . htmlspecialchars($path) ."' not found -->";
}
filemtime action
Displays the modification time of a file
Syntax: {{filemtime path="/path/to/file"}}
*/
$path = trim($vars['path']);
if (file_exists($path)) {
echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>"
} else {
echo "<!-- ERROR (filemtime): '" . htmlspecialchars($path) ."' not found -->";
}
Deletions:
echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>"
The syntax is simply:
""{{filemtime path="/path/to/file"}}""