Template::Plugin::DtFormatter::RelativeDate - return finder like relative date.
Version 0.03
[% USE DtFormatter.RelativeDate %] [% SET ymd = DtFormatter.RelativeDate.formatter("%Y-%m-%d", 'en') %] [% USE date = DateTime(today => 1) %] [% ymd( date ) %] # Today [% ymd( date.add(days=>1) ) %] # Tomorrow [% ymd( date.add(days=>1) ) %] # 2007-07-31 [% ymd( date.subtract(days=>3) ) %] # Yesterday [% ymd( date.subtract(days=>1) ) %] # 2007-07-27
internal function.
return closure.
bokutin, <bokuin at cpan.org>
<bokuin at cpan.org>
Copyright 2007 bokutin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::Plugin::DtFormatter::RelativeDate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::DtFormatter::RelativeDate
CPAN shell
perl -MCPAN -e shell install Template::Plugin::DtFormatter::RelativeDate
For more information on module installation, please visit the detailed CPAN module installation guide.