Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosmg committed Mar 8, 2022
1 parent 3ec645e commit 5fab709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/R/dplyr-funcs-type.R
Expand Up @@ -130,7 +130,7 @@ register_bindings_type_cast <- function() {

if (call_binding("is.character", x)) {
x <- build_expr("strptime", x, options = list(format = format, tz = tz, unit = 0L))
y <- build_expr("strptime", "0:0:0", options = list(format = "%X", tz = tz, unit = 0L))
y <- build_expr("strptime", "0:0", options = list(format = "%H:%M", tz = tz, unit = 0L))
diff_x_y <- call_binding("difftime", x, y, units = "secs", tz = tz)
return(diff_x_y)
}
Expand Down

0 comments on commit 5fab709

Please sign in to comment.