Skip to content

Commit

Permalink
Update R/excel_time_to_numeric.R
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Firke <[email protected]>
  • Loading branch information
billdenney and sfirke committed Nov 30, 2023
1 parent 6a0e63d commit faf632d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/excel_time_to_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ excel_time_to_numeric.character <- function(time_value, round_seconds = TRUE) {
"24hr" = "^([0-1]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?$",
# The ".*?" at the end of POSIX is to allow for a time zone, but it allows
# for imperfect parsing if there were just a date and a space.
# The the entire time is optional to allow for midnight which shows as
# The entire time is optional to allow for midnight which shows as
# just the date and time zone.
POSIX = "1899-12-31 (?:([0-1]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?)?.*?$"
)
Expand Down

0 comments on commit faf632d

Please sign in to comment.