minute_to_time.Rd
Transform minute variable into a character string in hour format.
minute_to_time(time, sec = TRUE, sep = c(":", "h"), day = TRUE)
time | positive numeric value in minute |
---|---|
sec | add the sec part of the string. |
sep | ':' by default, choice between ':' and 'h'. Only affect only the first separator character |
day | TRUE by default, allow to set time in a day period (betwwen 00h00 and 23:59) |
character string
Jaunatre Maxime <maxime.jaunatre@yahoo.fr>
minute_to_time(130.5, sec = TRUE)#> [1] "02:10:30"minute_to_time(130.5, sec = FALSE)#> [1] "02:10"minute_to_time(130.5, sec = TRUE, sep = 'h')#> [1] "02h10:30"minute_to_time(130.5, sec = FALSE, sep = 'h')#> [1] "02h10"minute_to_time(1440, sec = FALSE, sep = 'h')#> [1] "00h00"minute_to_time(1664, sec = FALSE, sep = 'h')#> [1] "03h44"