From 80587dabb58e550f4132e7f4bcc62e4963f97a5d Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Fri, 1 Nov 2024 16:00:57 -0500 Subject: [PATCH] lowercase some sql keywords --- R/dates.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/dates.R b/R/dates.R index 7185664..dd4ca8e 100644 --- a/R/dates.R +++ b/R/dates.R @@ -27,9 +27,9 @@ #' Consequently, we recommend not setting the day to a value after the 28. #' #' The [sql equivalent](https://docs.microsoft.com/en-us/sql/t-sql/functions/datepart-transact-sql) to `clump_month_date()` -#' is `CAST(convert(char(7), GETDATE(), 126) + '-15' AS date)`. +#' is `cast(convert(char(7), getdate(), 126) + '-15' as date)`. #' The [sql equivalent](https://blog.sqlauthority.com/2007/08/20/sql-server-find-monday-of-the-current-week/) to `clump_week_date()` -#' is `SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0)` +#' is `SELECT dateadd(wk, datediff(wk, 0, getdate()), 0)` #' #' @author Will Beasley #'