Lines Matching refs:Date
3 # Template::Plugin::Date
21 package Template::Plugin::Date;
150 eval { require "Date/Calc.pm" };
151 $self->throw("failed to load Date::Calc: $@") if $@;
152 return Template::Plugin::Date::Calc->new('no context');
157 eval { require "Date/Manip.pm" };
158 $self->throw("failed to load Date::Manip: $@") if $@;
159 return Template::Plugin::Date::Manip->new('no context');
169 package Template::Plugin::Date::Calc;
172 *throw = \&Template::Plugin::Date::throw;
181 my $sub = \&{"Date::Calc::$method"};
182 $self->throw("no such Date::Calc method: $method")
188 package Template::Plugin::Date::Manip;
191 *throw = \&Template::Plugin::Date::throw;
200 my $sub = \&{"Date::Manip::$method"};
201 $self->throw("no such Date::Manip method: $method")
214 Template::Plugin::Date - Plugin to generate formatted date strings
250 The C<Date> plugin provides an easy way to generate formatted time and date
324 The C<calc()> method can be used to create an interface to the C<Date::Calc>
330 The C<manip()> method can be used to create an interface to the C<Date::Manip>
343 Mark D. Mills cloned C<Date::Manip> from the C<Date::Calc> sub-plugin.