Take me over?
The maintainer of this distribution is looking for someone to take over!
If you're interested then please contact them via
email.
NAME
Template::Plugin::DtFormatter::RelativeDate - return finder like relative date.
VERSION
Version 0.03
SYNOPSIS
[% 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
FUNCTIONS
new
internal function.
formatter(strftime_string, lang)
return closure.
AUTHOR
bokutin, <bokuin at cpan.org>
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
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.