Skip to content

Commit

Permalink
fix: add "integer" type among accepted time classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaburg1 committed Mar 8, 2024
1 parent b1daf88 commit 4a2d159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ parse_event_time <- function(time, format = c("R", "T")) {
#'
time_to_numeric <- function(time, origin = NULL) {

if (!inherits(time, c("character", "POSIXct", "numeric"))) {
if (!inherits(time, c("character", "POSIXct", "numeric", "integer"))) {
stop("Invalid time format for parameter 'time'")
}

Expand Down

0 comments on commit 4a2d159

Please # to comment.