Chapter 10. Date and Time Functions

The date and time functions provide the ability to read the system time in various formats and to manipulate date information.

If you’re unfamiliar with date programming, it may be useful to know the following terms. The UNIX epoch is 00:00.00, January 1, 1970, Coordinated Universal Time (UTC).A UNIX timestamp (often just called a timestamp) is the number of seconds since the UNIX epoch. In most current applications, this number is stored as a 32-bit integer, meaning that it will be valid until early 2038 as is. Many people expect the world to move on to 64-bit systems by then, however.

These functions are available by default when PHP is built; you don’t have to give a special argument to the configure script ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.