Skip to content

Commit f30c0c2

Browse files
author
Shashwat
committed
added more seperators
1 parent 23679e4 commit f30c0c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/_libs/tslibs/parsing.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -828,9 +828,9 @@ def format_is_iso(f: str) -> bint:
828828
r"""
829829
^ # start of string
830830
\d{4} # match a 4-digit year
831-
(-\d{2})? # optionally match a 2-digit month
832-
(-\d{2})? # optionally match a 2-digit day
833-
(T\d{2}:\d{2}:\d{2} # match time in the format "THH:MM:SS"
831+
([ -/\\.]\d{2}|\d{2})? # optionally match a 2-digit month
832+
([ -/\\.]\d{2}|\d{2})? # optionally match a 2-digit day
833+
([ T]\d{2}:\d{2}:\d{2} # match time in the format "THH:MM:SS"
834834
(\.\d+)? # optionally match a decimal and fractional seconds
835835
([+-]\d{2}:\d{2}|Z)?)? # optional match timezone in the format "+HH:MM" or "Z"
836836
$ # end of string

0 commit comments

Comments
 (0)