Skip to content

Commit

Permalink
Merge branch 'excel_time_to_numeric' of github.com:billdenney/janitor…
Browse files Browse the repository at this point in the history
… into excel_time_to_numeric
  • Loading branch information
billdenney committed Nov 30, 2023
2 parents ef5c559 + e3d4f63 commit 7799926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/excel_time_to_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ excel_time_to_numeric.logical <- function(time_value, round_seconds = TRUE) {
#' @export
excel_time_to_numeric.numeric <- function(time_value, round_seconds = TRUE) {
if (all(is.na(time_value) |
(time_value >= 0 &
time_value < 1))) {
(time_value >= 0 &
time_value < 1))) {
seconds <- time_value * 86400
if (round_seconds) {
seconds <- round(seconds)
Expand Down

0 comments on commit 7799926

Please sign in to comment.