Answer the question
In order to leave comments, you need to log in
Subtract unixtime from unixtime and get date?
You need to subtract the unixtime of another date from the current date. Is the correct algorithm to do this: time() - $dateunix and wrap the result in date()? Or is something else used for this?
Answer the question
In order to leave comments, you need to log in
It is better to do it through DateTime-> diff and format the resulting DateInterval as needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question