January 2025
Intermediate to advanced
728 pages
18h 40m
English
Web applications use dates and times in many ways: to maintain calendars, log when invoices are created, record when a message has been sent, and so on. In this chapter, we’ll explore PHP’s built-in resources for storing and manipulating dates and times, including ways to handle complexities such as time zones and daylight saving time. We’ll also look at how to send date-time information back and forth between PHP and a database system like MySQL, which has its own, separate way of storing that information.
Countries have varying conventions for representing dates and times in day-to-day ...
Read now
Unlock full access