Here's the code I used, I was successful in grabbing seconds, minutes, hours and day differences from selected records.
This SQL may help people who are looking for similar information and are trying to find out how to do things like
calculate minutes, seconds, hours, days
I was using the advanced pane in the recordset creator within Dreamweaver MX 2004 for this.
Background:
"dt_event_initiated"
and
"dt_event_diffused"
were the fields that held the datetime fields in the table
"tbl_dt_event"
that I'm working with below (fyi)
--SQL Starts here---
SELECT * ,
(unix_timestamp(tbl_dt_event.dt_event_diffused) - unix_timestamp(tbl_dt_event.dt_event_initiated)) as difference_in_seconds ,
(unix_timestamp(tbl_dt_event.dt_event_diffused) - unix_timestamp(tbl_dt_event.dt_event_initiated)) /60 as difference_in_minutes,
(unix_timestamp(tbl_dt_event.dt_event_diffused) - unix_timestamp(tbl_dt_event.dt_event_initiated)) /3600 as difference_in_hours,
(unix_timestamp(tbl_dt_event.dt_event_diffused) - unix_timestamp(tbl_dt_event.dt_event_initiated)) /3600/24 as difference_in_days
FROM tbl_dt_event
ORDER BY dt_event_id DESC
--SQL ends here--