printing current date

From: Date: Thu, 09 Aug 2001 15:45:12 +0000
Subject: printing current date
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1319@lists.php.net to get a copy of this message
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

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