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