[PHP] time calcs

2003-06-29 Thread Larry R. Sieting
Hello, I am trying to get a time calculation using: $tot_time = ($data['end_time'] - $data['start_time']); The end_time & start_time are stored in a db as column type of time. I want to output the difference as a difference expressed in time format: 10:05:23 - 09:45:32 = 00:39:51 Do

Re: [PHP] time calcs

2003-06-29 Thread Jason Wong
On Monday 30 June 2003 03:19, Larry R. Sieting wrote: > I am trying to get a time calculation using: > > $tot_time = ($data['end_time'] - $data['start_time']); > > The end_time & start_time are stored in a db as column type of time. > > I want to output the difference as a difference expre

Re: [PHP] time calcs

2003-06-30 Thread Wendell Brown
On Mon, 30 Jun 2003 07:31:59 -0500, Wendell Brown wrote: >On Sun, 29 Jun 2003 15:19:56 -0400, Larry R. Sieting wrote: > >>I want to output the difference as a difference expressed in time >>format: 10:05:23 - 09:45:32 = 00:39:51 > >Try this: > > >$tot_time = ($data['end_time'] - $data['start