Jump to content

time elapsed between two times


duttydea

Recommended Posts

I have a Table that store my start & finish time for Work.

 

Work_Date Start           Finish     Lunch

2008-08-09 07:00:00 14:00:00 Yes

2008-08-11 07:00:00 17:00:00 Yes

 

I have tried the code below and get

01:00

 

    $elapsed = ($row["Finish"]) - ($row["Start"]);

    echo date("H:i", $elapsed); ?> 

 

 

Can someone help?

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/119196-time-elapsed-between-two-times/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.