Re: RSS-Feed processing

Michael Ludwig <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <20120305005251.GD1604@Dago>
Felix Delattre schrieb am 04.03.2012 um 18:33 (-0600):

> Another quick question: Is there a way to format [% item.pubDate %]
> to another date format?

Take a look at this page:

http://template-toolkit.org/docs/modules/Template/Plugin/Date.html

  [% USE date(format = '%A %d. %B %Y', locale = 'de_DE') %]
  [% date.format %]

However, in order to use this, you must first parse the string
item.pubDate into a time(), which you can do using POSIX::mktime.
-- 
Michael Ludwig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.