Skip to content

Commit

Permalink
handle datetime format in az_lwdaily()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylweiss committed Jul 8, 2024
1 parent cd6537a commit 7b72c40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/az_lwdaily.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ az_lwdaily <- function(station_id = NULL, start_date = NULL, end_date = NULL) {
)) %>%
dplyr::filter(.data$meta_station_id != "az99") %>%
dplyr::mutate(date = lubridate::ymd(.data$date)) %>%
#######dplyr::mutate(datetime = lubridate::as_date(lubridate::ymd_hms(.data$datetime, tz = "America/Phoenix"))) %>%
dplyr::mutate(datetime = lubridate::ymd_hms(.data$datetime, tz = "America/Phoenix")) %>%
# Convert NAs
dplyr::mutate(
dplyr::across(
Expand Down
2 changes: 1 addition & 1 deletion R/parse_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param station_id character or numeric vector
#' @param start start date or date time
#' @param end end date or date time
#' @param hour logical; do `start` and `end` contain hours?
#' @param hour logical; is request for hourly data?
#' @param real_time logical; is request for real-time data?
#'
#' @note If `hour = TRUE`, `start` and `end` can be character or POSIXct and
Expand Down
2 changes: 1 addition & 1 deletion R/retrieve_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param station_id character; in the format of "az01"
#' @param start_f character; ISO formatted date time string
#' @param time_interval character; ISO8601 formatted time interval string
#' @param endpoint character; one of "daily", "hourly", "hueto", or "fifteen"
#' @param endpoint character; one of "15min", "daily", "hourly", "hueto", "lw15min", or "lwdaily"
#' @param print_call logical; when TRUE, prints the HTTP request to the AZMet API
#'
#' @return tibble
Expand Down

0 comments on commit 7b72c40

Please sign in to comment.