Skip to content

Commit 3a15a21

Browse files
javiereguiluzxabbuh
authored andcommitted
Mentioned that validator can validate DateTimeInterface too
1 parent c45a7f2 commit 3a15a21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/Time.rst

Lines changed: 3 additions & 3 deletions
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)