Cast an object to a timespan
Arguments
- x
an object to cast
- ...
Additional arguments passed to
format
when a function is provided.- format
a
function
orcharacter
value. If afunction
, it should accept a character vector and return a matrix of parttime components. If acharacter
it should provide a regular exprssion which contains capture groups for each of the parttime components. See parse_to_parttime_matrix'sregex
parameter for more details.