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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 2, 2013, 3:07 AM EDT
You can do this
Regards,
Iftikar
Pankaj PandeyRank #642 · 3.7K reputationPosted Jul 2, 2013, 3:47 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 2, 2013, 4:12 AM EDT
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