The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to Subtract Time from Time to = Time?
Basically what I'm asking if I have something like
$user['dateregistered'] $currentdate Both of those are stored in the db, how can I take the dateregistered and subtract the current date and then be able to output a new variable called something like $totaldaysregistered. And have that totaldaysegistered display the number of days, hours, and minutes total. Is there any kind of php coding we can do to get this? |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
as you can find in member.php that way:
PHP Code:
|
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
theoretically it should be possible to use vbdate here, so in a way like:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|