I am using mysql and I have a column which tracks the datetime, in the form, yyyy-mm-dd hh:mm:ss. I want to fetch that timestamp and calculate the difference of midnight to the time.
Example, if the datetime has 2014-11-22 13:53:41, I want the value of: (Midnight of 2014-11-22) - (2014-11-22 13:53:41).
The value comes out to be: 11:07:19.
I want this value to be shown as counter on my website which uses php.