# Date and Time

> Section in “New and Extended Functionality” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/date-and-time/>

## In this section

- [DateTime::createFromImmutable()](https://php7explained.com/new-and-extended-functionality/date-and-time/datetimecreatefromimmutable/index.html.md): DateTime::createFromImmutable() creates a mutable DateTime object from an existing DateTimeImmutable object, the counterpart of createFromMutable().
- [High-Resolution Monotonic Timer](https://php7explained.com/new-and-extended-functionality/date-and-time/high-resolution-monotonic-timer/index.html.md): PHP 7.3 introduces hrtime(), a monotonic timer with nanosecond resolution that, unlike microtime(), does not depend on the system clock.
- [MySQL, Prepared Statements, and Fractional Seconds](https://php7explained.com/new-and-extended-functionality/date-and-time/mysql-prepared-statements-and-fractional-seconds/index.html.md): Since PHP 7.3, prepared statements executed with mysqli or pdo_mysql no longer truncate the fractional seconds of MySQL time values such as TIMESTAMP(6).

---

Previous: [References](https://php7explained.com/new-and-extended-functionality/reflection-api/references/index.html.md) | Next: [DateTime::createFromImmutable()](https://php7explained.com/new-and-extended-functionality/date-and-time/datetimecreatefromimmutable/index.html.md)
