How to convert "2011-11-03T17:27:56Z" to time in php.
I want time difference from current time.
i.e. if time difference from current time is 10 minutes the I want 10 minutes. If its 1 day then I want 1 day.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This little snippet will give you the difference in seconds between now and the given date.
To give it the specific format you’re asking for you can use the below function I found here:
Combining the both this is what you get:
Outputs: