Log in

View Full Version : Is there a way to include actual hour - date("H") - in templates


ThorstenA
03-10-2009, 08:51 AM
Is there a way to put the actual hours into templates? Is there a constant / variable where system hours is included? Thanks

PHP to get date is date("H"). I am looking for a variable / constant / function that I can just use in template headinclude without programming a plugin.

Thank you.

Lynne
03-10-2009, 02:25 PM
The date gets put onto the bottom of each page in the footer:
All times are GMT -7. The time now is 08:23.

Take a look at how it is output there.

ragtek
03-10-2009, 03:52 PM
look at the function fetch_time_date()


$datenow = vbdate($vbulletin->options['dateformat'], TIMENOW);
$timenow = vbdate($vbulletin->options['timeformat'], TIMENOW);
$copyrightyear = vbdate('Y', TIMENOW, false, false);