How to determine a timeout using unix time in mysql

Submitted by:adam Smith

Date added:22 May, 2017

Category:Delphi

This will return the number of seconds between now and when the time field was inserted.

Tags: timeout , unix time

Code Snippet:

    SELECT unix_timestamp(current_timestamp) - unix_timestamp(time_field) AS timediff
FROM table_name;
 
 

Comments