dear friends,
eg: 0/3/2013 4:25:00 AM
i want to reduce two "NowTime" values in a query and get the difference.
Is it possible??
How can i do it??
thanks a lot.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Jul 2, 2013, 8:12 AM
select time_to_sec(timediff('2010-09-01 03:00:00',
'2010-09-01 00:10:00' ))
you can pass the parameters also to that query
or you can get details from this link
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timestampdiff
Pankaj PandeyPosted Jul 2, 2013, 7:47 AM
Iftikar HussainPosted Jul 2, 2013, 7:07 AM
You can do this
Regards,
Iftikar