Skip to content

Commit

Permalink
support am/pm formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadmata committed Jun 10, 2024
1 parent c321b5c commit cdc995b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shmessy/date_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def validate(
data: ndarray, patterns: list[str], inferred_type: str
) -> Optional[InferredField]:

if isinstance(data[0], (datetime64, Timestamp)):
return InferredField(inferred_type=inferred_type)

if not __match_date_delimiter(data[0]):
return None

Expand Down

0 comments on commit cdc995b

Please sign in to comment.