From a8f3ab5f9df9710f3f050ab3b138dd7a79f4995d Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Sat, 20 Aug 2022 21:47:47 -0400 Subject: [PATCH] fix: lubridate mapping for floor_date --- siuba/experimental/datetime.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/siuba/experimental/datetime.py b/siuba/experimental/datetime.py index f6fc0441..0c291a79 100644 --- a/siuba/experimental/datetime.py +++ b/siuba/experimental/datetime.py @@ -14,16 +14,16 @@ LUBRIDATE_OFFSETS = { "second": "S", - "minute": "M", + "minute": "T", "hour": "H", "day": "D", "week": "W", - "month": "M", - "bimonth": "2M", - "quarter": "Q", + "month": "MS", + "bimonth": "2MS", + "quarter": "QS", "season": None, "halfyear": None, - "year": "Y" + "year": "YS" } # There's no class that clearly identifies all the Datetime op compatible classes,