| 1 |
Source: libtemplate-plugin-datetime-perl |
| 2 |
Section: perl |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Perl Group <[email protected]> |
| 5 |
Uploaders: Nick Morrott <[email protected]> |
| 6 |
Build-Depends: debhelper-compat (= 13), libmodule-install-perl |
| 7 |
Build-Depends-Indep: libdatetime-format-strptime-perl, |
| 8 |
libdatetime-perl, |
| 9 |
libtemplate-perl, |
| 10 |
perl |
| 11 |
Standards-Version: 3.9.8 |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtemplate-plugin-datetime-perl |
| 13 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtemplate-plugin-datetime-perl.git |
| 14 |
Homepage: https://metacpan.org/release/Template-Plugin-DateTime |
| 15 |
Testsuite: autopkgtest-pkg-perl |
| 16 |
|
| 17 |
Package: libtemplate-plugin-datetime-perl |
| 18 |
Architecture: all |
| 19 |
Depends: ${misc:Depends}, ${perl:Depends}, |
| 20 |
libdatetime-format-strptime-perl, |
| 21 |
libdatetime-perl, |
| 22 |
libtemplate-perl |
| 23 |
Description: plugin to use DateTime objects in the Template Toolkit |
| 24 |
Basic usage for Template::Plugin::DateTime is as follows: |
| 25 |
. |
| 26 |
USE date = DateTime(year = 2004, month = 4, day = 1); |
| 27 |
. |
| 28 |
-OR- |
| 29 |
. |
| 30 |
by passing a pattern to parse a date by string using |
| 31 |
DateTime::Format::Strptime |
| 32 |
. |
| 33 |
USE date = DateTime(from_string => '2008-05-30 00:00:00', |
| 34 |
pattern => '%Y-%m-%d %H:%M:%S', |
| 35 |
time_zone => 'America/New_York'); |