Date: 10/12/01
- Next message: J Smith: "[PHP] Re: Users changing passwords"
- Previous message: Matthew Luchak: "RE: [PHP] testing an email address"
- Next in thread: Jack Dempsey: "Re: [PHP] Time Processing (sum of two times)"
- Reply: Jack Dempsey: "Re: [PHP] Time Processing (sum of two times)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Does anybody know of a way in PHP to get the sum of two times?
For example, you have extracted "11:05:00" from one field of a
database, and "00:56:00" from another field.
I need to add the two and come up with something like:
"11:05:00" + "00:56:00" = "12:01:00"
In other words, the sum of two times (as in a time field).
It could be used, for instance, when you're trying to add an
appointment time and the length of the appointment to get the
end of that appointment time, or the start of the next appointment time.
Some scripting languages have functions like
SumTimes(time1, time2) OR SumDates(date1, date2)
OR DiffTimes(time1, time2)
Any ideas how to accomplish this in PHP please?
Thanks.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: J Smith: "[PHP] Re: Users changing passwords"
- Previous message: Matthew Luchak: "RE: [PHP] testing an email address"
- Next in thread: Jack Dempsey: "Re: [PHP] Time Processing (sum of two times)"
- Reply: Jack Dempsey: "Re: [PHP] Time Processing (sum of two times)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

