Cory G Watson > Template-Plugin-Time-Duration-0.02 > Template::Plugin::Time::Duration

Download:
Template-Plugin-Time-Duration-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Template::Plugin::Time::Duration - Time::Duration functions for Template Toolkit

SYNOPSIS ^

    [% USE time_dir = Time.Duration %]

    This thing happened [% time_dir.ago(some_seconds) %].

DESCRIPTION ^

This plugin allows you to use functions from Time::Duration in your templates. It is very simple and hopefully requires little explanation.

FUNCTIONS ^

ago

ago_exact

concise

duration

duration_exact

from_now

from_now_exact

later

later_exact

earlier

earlier_exact

SEE ALSO ^

Time::Duration

AUTHOR ^

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE ^

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.

syntax highlighting: