The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbulletin conversion
hi,
i've the following problem: Date and hour i see with vbulletin program (e.g.: 2002-02-22 18:51:19) become strange numbers in phpmyadmin and other database import programs (e.g.: the date above becomes 1014421901). Can you explain me how can I reconvert the number 1014421901 in date and hour? what is the operation that is made to transform the date and hour in this ten digit number? Thank you for your help |
#2
|
||||
|
||||
|
#3
|
||||
|
||||
Quote:
can I ask why vB is using this time stamp? I'm now reading your link, and more information about it. Thankyou! |
#4
|
|||
|
|||
First of all, those strange looking numbers are Unix-style datetime-stamps. It is the number of seconds since the Unix-epoch.
Ofcourse you can write your own formatting using standard PHP-functions. When used in a vB environment it is however better to use vbdate() as provided in includes/functions.php. Examples: PHP Code:
If you use this technique you can make sure that dates and times are consistently formatted on your board. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|