Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions components/clock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,17 @@ If you :doc:`use Doctrine </doctrine>` to work with databases, consider using th

The ``DatePointType`` was introduced in Symfony 7.3.

.. tip::

Use the ``'day_point'`` and ``'time_point'`` types, and the
:class:`Symfony\\Component\\Clock\\DatePoint` class when the property stores
only a date or a time instead of a full datetime.

.. versionadded:: 7.4

The ``'day_point'`` and ``'time_point'`` types and the ``DatePoint`` class
was introduced in Symfony 7.4.

.. _clock_writing-tests:

Writing Time-Sensitive Tests
Expand Down