Finding difference between dates.

SpaceshipSpaceship
Watch

dkin69

Established Member
Impact
4
Im using mktime to find current time and time in 24 hours. Now, I need to be able to tell the user how much more time is left until the 24 hours are up, so I have this after subtracting the 2 dates.

so say I have this 59246 how can I tell how many more hours minutes and seconds are left until 24 hours have expired?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
from my understanding it would be 86400-(current time)

is that what you needed, or that actual code
 
0
•••
if you are using mktime to find the value of this precise time and the time in 24 hours the difference will always be 24 hours.
 
0
•••
If you haven't checked this out already, you may find it really helpful:
http://php.net/date

There are some great tips for date calculations in the user suggestions.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back