Skip to content

Commit

Permalink
remove duplicated date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Jan 31, 2025
1 parent 0f31727 commit bc2b9f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/read_smips.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ read_smips <- function(collection = "totalbucket",

tryCatch(
x <- lubridate::parse_date_time(x, c(
# TODO: B and b are the same, maybe remove one later
# Are they? `b` should be e.g., "Jan", `B` should be, e.g., "January"
# based on `base::strptime()`, https://rdrr.io/r/base/strptime.html, for parsing inputs, they are the same
"Ymd", "dmY", "BdY", "Bdy", "bdY", "bdy"
"Ymd", "dmY", "BdY", "Bdy"
), tz = tz),
warning = function(c) {
cli::cli_abort("{ x } is not in a valid date format.
Expand Down

0 comments on commit bc2b9f0

Please sign in to comment.