Prev | Current Page 388 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Hopefully this
chapter convinced you of the serious time savings this repository can present. You
learned about the PEAR Package Manager and how to manage and use packages.
Later chapters introduce additional packages, as appropriate, showing you how
they can really speed development and enhance your application??™s capabilities.
323
?–  ?–  ?– 
C H A P T E R 1 2
Date and Time
Time- and date-based information plays a significant role in our lives and, accordingly,
programmers must commonly wrangle with temporal data on a regular basis.
When was a tutorial published? Is the pricing information for a particular product
recent? What time did the office assistant log into the accounting system? At what hour
of the day does the corporate Web site see the most visitor traffic? These and countless
other time-oriented questions come about on a regular basis, making the proper
accounting of such matters absolutely crucial to the success of your programming
efforts.
This chapter introduces PHP??™s powerful date and time manipulation capabilities.
After offering some preliminary information regarding how Unix deals with date and
time values, in a section called ???Date Fu??? you??™ll learn how to work with time and dates
in a number of useful ways. You??™ll also create grid calendars using the aptly named
PEAR package Calendar. Finally, the vastly improved date and time manipulation
functions available as of PHP 5.


Pages:
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400