Given 2 fields of type datetime in mySql which look like: 2009-07-26 18:42:21. After retrieving these values in PHP, how can I compare the 2 time stamps to figure out how many seconds have elapsed between them? I tried simply subtracting them but that didn’t to work.
Given 2 fields of type datetime in mySql which look like: 2009-07-26 18:42:21 .
Share
1 Answer