Skip to content
Sections
>> Trisquel >> Пакети >> etiona >> perl >> libtemplate-plugin-datetime-format-perl
etiona  ] [  nabia  ] [  aramo  ]
[ Източник: libtemplate-plugin-datetime-format-perl  ]

Пакет: libtemplate-plugin-datetime-format-perl (0.03-1)

module for formatting DateTime objects from TT with DateTime::Format

Oftentimes, you have a DateTime object that you want to render in your template. However, the default rendering (2008-01-01T01:23:45) is pretty ugly. Formatting the DateTime with a DateTime::Format object is the usual solution, but there's usually not a nice place to put the formatting code.

Template::Plugin::Datetime::Format solves that problem. You can create a formatter object from within TT and then use that object to format DateTime objects.

Други пакети, свързани с libtemplate-plugin-datetime-format-perl

  • зависимости
  • препоръчани
  • предложени
  • dep: libclass-load-perl
    module for loading modules by name
  • dep: libdatetime-perl
    module for manipulating dates, times and timestamps
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

Изтегляне на libtemplate-plugin-datetime-format-perl

Изтегляне за всички налични архитектури
Архитектура Големина на пакета Големина след инсталиране Файлове
all 6,8 кБ56 кБ [списък на файловете]