We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23679e4 commit f30c0c2Copy full SHA for f30c0c2
pandas/_libs/tslibs/parsing.pyx
@@ -828,9 +828,9 @@ def format_is_iso(f: str) -> bint:
828
r"""
829
^ # start of string
830
\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"
+ ([ -/\\.]\d{2}|\d{2})? # optionally match a 2-digit month
+ ([ -/\\.]\d{2}|\d{2})? # optionally match a 2-digit day
+ ([ T]\d{2}:\d{2}:\d{2} # match time in the format "THH:MM:SS"
834
(\.\d+)? # optionally match a decimal and fractional seconds
835
([+-]\d{2}:\d{2}|Z)?)? # optional match timezone in the format "+HH:MM" or "Z"
836
$ # end of string
0 commit comments