Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql date diff in seconds

SELECT TIME_TO_SEC(TIMEDIFF('2021-05-22 12:00:00', '2021-05-22 12:00:37')) as diff_in_seconds;
 
PREVIOUS NEXT
Tagged: #mysql #date #diff #seconds
ADD COMMENT
Topic
Name
2+2 =