O'Reilly logo

PHP Programming with PEAR by Stoyan Stefanov, Carsten Lucke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Working with Dates

This chapter introduces PEAR's Date and Time section. It covers the packages Date, Date_Holidays, and Calendar. You will see what help they offer and learn how to use them to solve date- and time-related problems. You can visit the Date and Time section online at http://pear.php.net/packages.php?catpid=8&catname=Date+and+Time.

After reading the chapter, you will be able to use these packages as a replacement for PHP's native date and time functions. Knowledge of these three libraries will help you to program robust date-related applications.

Working with the Date Package

You may ask why you should use PEAR::Date instead of PHP's native Unix timestamp-based date and time functions. In fact, using PEAR::Date means a loss ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required