simple question in lubridate--I want to convert an hms object into its appropriate number of seconds since the start of the day.
For instance
library(lub
R>lubridate::period_to_seconds(hms("01:00:00"))
gives expected 3600 seconds as numeric counting from 00:00:00 or in the case above:
R>period_to_seconds(hms("12:34:45"))