Template::Plugin::Time::Duration - Time::Duration functions for Template Toolkit
[% USE time_dir = Time.Duration %] This thing happened [% time_dir.ago(some_seconds) %].
This plugin allows you to use functions from Time::Duration in your templates. It is very simple and hopefully requires little explanation.
Time::Duration
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2010 Cold Hard Code, LLC
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Template::Plugin::Time::Duration, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Time::Duration
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Time::Duration
For more information on module installation, please visit the detailed CPAN module installation guide.