View source: R/parse_no_hour_time.R
parse_no_hour_time | R Documentation |
parse_no_hour_time
will format and parse a time such as 124.17
(124 minutes and 17 seconds) to a period with hour, minutes, and seconds.
parse_no_hour_time(x, format = "period")
x |
Vector of times in no hour format. |
format |
What format of return is desired? The options are
|
Period, hms, or numeric vector.
Stuart K. Grange
period_to_date
, period_to_string
# Parse a times with no hour
parse_no_hour_time(c(124.17, "89:22"))
# As hms
parse_no_hour_time(c(124.17, "89:22"), format = "hms")
# Or as seconds
parse_no_hour_time(c(124.17, "89:22"), format = "seconds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.