Appendix F. Date Functions
Dates are typically seen as strings that represent a calendar date, but the date data type is a scalar number in PHP and most other programming languages. Dates are the subject of extensive international discourse and standards because systems must be able to agree on transaction dates and timestamps.
The conversion process from date to string data types and vice versa is an interesting process. Programming languages take common approaches by providing libraries that enable you to format date variables into various human-readable strings and create date variable types from string and int data type variables.
This appendix introduces the PHP 5 date management library functions. They are summarized in Table F-1 and then ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access