Skip to content

Commit 3872ec5

Browse files
committed
feature #7405 Mentioned that validator can validate DateTimeInterface too (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #7405). Discussion ---------- Mentioned that validator can validate DateTimeInterface too This fixes #7333. Commits ------- 3a15a21 Mentioned that validator can validate DateTimeInterface too
2 parents ebaa7dc + 3a15a21 commit 3872ec5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/Time.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Time
22
====
33

4-
Validates that a value is a valid time, meaning either a ``DateTime`` object
5-
or a string (or an object that can be cast into a string) that follows
6-
a valid "HH:MM:SS" format.
4+
Validates that a value is a valid time, meaning an object implementing
5+
``DateTimeInterface`` or a string (or an object that can be cast into a string)
6+
that follows a valid ``HH:MM:SS`` format.
77

88
+----------------+------------------------------------------------------------------------+
99
| Applies to | :ref:`property or method <validation-property-target>` |

0 commit comments

Comments
 (0)