PHPBuilder: Date Manipulation in PHP

Wednesday Jun 14th 2000 by ServerWatch Staff
Share:

I was sitting writing a kind of helpdesk call management program in PHP and found that I needed to work out how much time had elapsed since somebody had last bothered to contact the client about their problem. In the past, when I used to use ASP, the solution was simple - ASP has a command called DateDiff which takes two dates and can tell you how many seconds has passed between them, how many days, months and so on. After scouring the PHP manual for a while I decided that PHP has no such beast. I then wondered how many other people there were out there like me,

"I was sitting writing a kind of helpdesk call management program in PHP and found that I needed to work out how much time had elapsed since somebody had last bothered to contact the client about their problem. In the past, when I used to use ASP, the solution was simple - ASP has a command called DateDiff which takes two dates and can tell you how many seconds has passed between them, how many days, months and so on. After scouring the PHP manual for a while I decided that PHP has no such beast. I then wondered how many other people there were out there like me, and thus this tutorial."

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved