Accepts POSIXt, hms / difftime, numeric fractions of a day (Excel time) or
bare numeric minutes, and character strings: "HH:MM:SS", "HH:MM", bare
numeric strings (minutes), and durations beyond 24 h (e.g. "25:30:00").
Character strings are parsed element-wise; malformed entries become NA.
Examples
clock_to_minutes("08:30:00")
#> [1] 510
clock_to_minutes("25:30") # 25 h 30 min = 1530 min
#> [1] 1530
clock_to_minutes(0.5) # half a day = 720 min
#> clock_to_minutes(): all numeric values are in [0, 1]; treating them as Excel day-fractions (x 1440 min). If they are already minutes, pass them as values > 1 or convert with as.numeric() first.
#> [1] 720