Re: [PHP] Calculate # of minutes during working hours between two dates

2001-06-21 Thread Hugh Bothwell
Yick! Three-quarters of the replies to this are not what he asked for, and the others are really scarily inefficient. Total work time = (start time to end of first week) + (end of first week to end of last week) - (end time to end of last week). This is a non-obvious way to phrase it, but it el

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread Jason Murray
technology for?" 'Faster pizza delivery.' > -Original Message- > From: SED [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 5:55 AM > To: 'Wim Koorenneef' > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Calculate # of minutes during working

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread Rich Cavanaugh
--Original Message- From: Wim Koorenneef [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Calculate # of minutes during working hours between two dates Hi all, I want to calculate the number of minutes between two dates, but only those minutes

Re: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread dcoleman
Hi See http://www.php.net/manual/en/function.jddayofweek.php For each date returning 1 through 5, add the appropriate amounts of minutes to the total HTH Wim Koorenneef wrote: > Hi all, > > I want to calculate the number of minutes between two dates, but only > those minutes on monday through

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread scott [gts]
ect: [PHP] Calculate # of minutes during working hours between two > dates > > Hi all, > > I want to calculate the number of minutes between two dates, but only > those minutes on monday through friday between 08.00 and 17.30. > > I could evaluate every minute in the i

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread SED
Try to find unix-time in seconds: (endtime - starttime) / 60 = total minutes SED -Original Message- From: Wim Koorenneef [mailto:[EMAIL PROTECTED]] Sent: 20. júní 2001 15:26 To: [EMAIL PROTECTED] Subject: [PHP] Calculate # of minutes during working hours between two dates Hi all, I

Re: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread Jon Rosenberg
11:25 AM Subject: [PHP] Calculate # of minutes during working hours between two dates > Hi all, > > I want to calculate the number of minutes between two dates, but only > those minutes on monday through friday between 08.00 and 17.30. > > I could evaluate every minute in the int

[PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread Wim Koorenneef
Hi all, I want to calculate the number of minutes between two dates, but only those minutes on monday through friday between 08.00 and 17.30. I could evaluate every minute in the interval against all known minutes during working hours, but that's a bit much :-) Any suggestions for a better, m