Hello Frank, As far as I know I am not doing anything in terms of trying to write or use my own function. What I am trying to do is use what PHP provides.
Thank you Eric H. Lommatsch Programmer Pivotal Data Incorporated 2087 South Grant Street Denver, CO 80210 Tel 303-777-8939 Ext 23 Fax 888-282-9927 www.pivotaldata.com er...@pivotaldata.com -----Original message----- From: Frank Arensmeier <farensme...@gmail.com> Sent: Thu 29-12-2011 15:25 To: Eric Lommatsch <er...@pivotaldata.net>; CC: email@example.com; Subject: Re: [PHP] Question about date calculations 29 dec 2011 kl. 22.22 skrev Eric Lommatsch: > So far in looking at the functions that are available at > http://www.php.net/manual/en/ref.datetime.php I have not been able to figure > out how to do what I need to do. Below is a snippet showing approximately > what I am trying to do. On the same page you are referring, there are plenty of examples on how to calculate the difference between two dates. Choose one and see if it fits your bill. Or is there any particular reason why you're writing your "own" function? http://www.php.net/manual/en/ref.datetime.php#78981 /frank