I’m running this SELECT statement:
TIMEDIFF(NOW(), posts.date_modified) as time_ago
And getting results in the format 02:58:32. The last set of digits, :32, are the number of seconds.
How can I omit the seconds?
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.
Consult the manual for more on
TIME_FORMAT()and a table of allowed specifiers.