Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] How do I get the current year in TemplateDefault.pm?

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Jan 22 2008 - 19:17:18 GMT
On Tue, Jan 22, 2008 at 01:08:50PM -0600, Adam Douglas wrote:
> Hi. I'm altering the rendering of swish.cgi by modifying the
> TemplateDefault.pm and was wondering how would I be able to calculate
> the current year and then have it displayed?

TemplateDefault is just Perl, right?  

$ perl -le 'print( (localtime)[5]+1900 )'
2008

-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Jan 22 14:17:18 2008