PDA

View Full Version : Adding the time


ZGeek
08-24-2005, 03:27 AM
I'm trying to add the time to a page im building in vb and i can get the date to show by using $today

Does anyone know how or if this is possible to do with just the time?

Adrian Schneider
08-24-2005, 03:34 AM
3.5:

$time = vbdate($vbulletin->options['timeformat'], TIMENOW);

3.0.x
$time = vbdate($vboptions['timeformat'], TIMENOW);

Then just stick $time in your template. These may not be 100% accurate, they are from memory.

ZGeek
08-24-2005, 03:36 AM
Thanks mate, your a legend :)