Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pyarrow-date-parsing' into pyarr…
Browse files Browse the repository at this point in the history
…ow-date-parsing
  • Loading branch information
raisadz committed Oct 31, 2024
2 parents 1ac2df7 + 11b5b99 commit 1b6111f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narwhals/_arrow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def convert_str_slice_to_int_slice(
DATE_RE = r"(?P<date>\d{1,4}[-/.]\d{1,2}[-/.]\d{1,4})"
SEP_RE = r"(?P<sep>\s|T)"
TIME_RE = r"(?P<time>\d{2}:\d{2}(?::\d{2})?)" # \s*(?P<period>[AP]M)?)?
HMS_RE = r"(?P<hms>\d{2}:\d{2}:\d{2})"
HM_RE = r"(?P<hm>\d{2}:\d{2})"
HMS_RE = r"^(?P<hms>\d{2}:\d{2}:\d{2})$"
HM_RE = r"^(?P<hm>\d{2}:\d{2})$"
TZ_RE = r"(?P<tz>Z|[+-]\d{2}:?\d{2})" # Matches 'Z', '+02:00', '+0200', '+02', etc.
FULL_RE = rf"{DATE_RE}{SEP_RE}?{TIME_RE}?{TZ_RE}?$"

Expand Down

0 comments on commit 1b6111f

Please sign in to comment.