Re: printing current date

From: Date: Thu, 09 Aug 2001 16:07:59 +0000
Subject: Re: printing current date
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1320@lists.php.net to get a copy of this message
Yeah, that's nice. At 17:45 8/9/2001, Monte Ohrt wrote the following: -------------------------------------------------------------- >I need a bit of feedback :-) > >Currently, there is no way to print the current date in Smarty. You must >always assign the current date to the template. We are going to add a >special variable to Smarty that always contains the current date. > >{$smarty.now} >{$smarty.now|date_format:"%Y"} > > >My question is, what should the name be? Will "now" make sense for >everyone? > >other ideas: >{$smarty.date} >{$smarty.date_current} >{$smarty.datetime} > > >Also, "now" would actually be the current date and time, a unix >datestamp for passing to date_format. Sound good? > >Monte > >--- >You are currently subscribed to smarty as: cynic@mail.cz >To unsubscribe send a blank email to $subst('Email.Unsub') >Visit Smarty's homepage at >http://www.phpinsider.com/php/code/Smarty/ ------end of quote------ cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

« previous php.smarty.general (#1320) next »