The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB's time functions
Hi,
I am developing a custom page and I want to display the time when a thread was created. The creation time is available in the field "dateline" from table "thread". I could very easily read the time & display it, but I want to format it nicely, the way VB is doing it. Time formatted by VB may look like this: "Yesterday at 3:44 pm." What VB functions do I need to use to properly format the time ? Regards, Razvan M. |
#2
|
|||
|
|||
Take a look at vbdate()
|
#3
|
|||
|
|||
I did something like this:
Code:
$story_date = vbdate($vbulletin->options['dateformat'], $date_line, true) ; $story_time = vbdate($vbulletin->options['timeformat'], $date_line); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|