I want to add any quantity of minutes to a
Period variable, and i’d like the hour element update whenever the minute element exceeds 59. In the following operation, the additive works well for the first example using this syntax, but in the second case it doesn’t:
library(lubridate) hm_example <- hm("17:49") hm_example + minutes(10) #  "17H 59M 0S" hm_example + minutes(100) #  "17H 149M 0S"
The second case i’d like the result as
19H 29M 0S. I’ve seen the package documentation, but i couldn’t an alternative for this. Are there a native option from lubridate to correct it ?
I am using the lubridate version