Skip to content

Commit 464380f

Browse files
committed
Add docstring for does_string_look_like_time
1 parent 98c0556 commit 464380f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/_libs/tslibs/parsing.pyx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ cdef inline object _parse_delimited_date(object date_string, bint dayfirst):
143143

144144

145145
cdef inline bint does_string_look_like_time(object parse_string):
146+
"""
147+
Checks whether given string is a time: it has to start either from
148+
H:MM or from HH:MM, and hour and minute values must be valid.
149+
150+
Parameters
151+
----------
152+
date_string : str
153+
154+
Returns:
155+
--------
156+
whether given string is a time
157+
"""
146158
cdef:
147159
const char* buf
148160
Py_ssize_t length

0 commit comments

Comments
 (0)