A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Waterfall_Cache has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 47

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 194

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Memcache_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 275

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Filesystem_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 440

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; APC_Cache_System has a deprecated constructor

Filename: _common/waterfall_cache.php

Line Number: 628

PHPBuilder: Date Manipulation in PHP

PHPBuilder: Date Manipulation in PHP

By ServerWatch Staff (Send Email)
Posted Jun 14, 2000


Download the authoritative guide: Data Center Guide: Optimizing Your Data Center Strategy

Download the authoritative guide: Cloud Computing: Using the Cloud for Competitive Advantage

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."

Page 1 of 1

Thanks for your registration, follow us on our social networks to keep up-to-date