How to check how much time has passed from a certain time and date

Asked

Viewed 30 times

0

Well here’s the thing, I have two variables.

$data = "27/12/2016";
$hora = "17:20";

I wanted to make a script in PHP that showed me how many days, hours and minutes passed from that date and time.

How can I do?

Thank you.

  • There’s this one too, which does exactly what you described: http://answall.com/questions/156717/70

  • I already realized the idea on the other, how do I make the date graduate stay: day/month/year instead of month/day/year ? Thank you.

  • I updated both to put more emphasis on the bar issue, but if you have any extra questions let me know.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.