17.3. Summary

PHP and PostgreSQL can be used to perform a variety of complex operations for working with dates and time efficiently. Although both systems provide a set of functions, it is necessary to build bridges so that PHP and PostgreSQL can interact with each other reliably.

The major problem when combining PHP and PostgreSQL is that the precision with which dates and time are treated varies. This can cause problems when working with comparatively small time fragments.

Get PHP and PostgreSQL: Advanced Web Programming 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.