PDA

View Full Version : Current time variable?


Jolten
07-24-2005, 07:30 AM
Anyone know what phrase or variable I can use in a template to display the current time to a user? The vbphrase[all_times_are-gmt..blah,blah] won't work. I just want to display only the time.

Thanks

Adrian Schneider
07-24-2005, 07:58 AM
All I could find is the constant TIMENOW which is useless for what you want... You'll probably just have to add some php_include code
$timenow = vbdate($vboptions['timeformat'], TIMENOW);

Jolten
07-24-2005, 08:06 AM
Thanks Specialist, that worked. Not as easy as a phrase but just as good. :)

I appreciate it.

Christine
07-24-2005, 01:08 PM
I have been using this in my navbar template for a while. It still works in 3.5. :)

<phrase 1="$timenow">$vbphrase[time_is_now_y]</phrase>

Phrase is:

The time now is <span class="time">{1}</span>