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