1 # Blosxom plugin: modiftime
2 # Author(s): Barijaona Ramaholimihaso
4 # Documentation: see bottom of file or perldoc title
11 # ---------------------------------------------------------
16 my ($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) =@_;
18 $file = "$blosxom::datadir$path/$filename.$blosxom::file_extension";
19 $mtime = stat("$file")->mtime;
20 my($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($mtime);
23 $hour = sprintf("%02d",$hour);
24 $min = sprintf("%02d",$min);
25 $sec = sprintf("%02d",$sec);
26 $modiftime ="$mday/$mon/$year $hour:$min";
34 Blosxom Plug-in: modiftime
38 Allows you to include the date and time when the file was last modified.
40 Useful if you want to include this info, while using a date caching plugin like entries_index or entriescache.
44 Put title in your plug-ins directory.
46 If required adapt the $modiftime variable.
48 Just place $modiftime::modiftime where you want to display the date and time when your story was last modified.
56 20040802 - First "official" release
60 Barijaona Ramaholimihaso <blosxom@barijaona.com>, http://homepage.mac.com/barijaona/
64 Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net
66 Blosxom Plugin Docs: http://blosxom.sourceforge.net/plugins/
70 None known; please send bug reports and feedback to the Blosxom development mailing list <blosxom-devel@lists.sourceforge.net>.
74 This program is free software; you can redistribute
75 it and/or modify it under the same terms as Perl itself.