
Constructive options for class 'clock_duration'
Source:R/s3-clock_duration.R
opts_clock_duration.RdThese options will be used on objects of class 'clock_duration'.
Usage
opts_clock_duration(constructor = c("duration", "next", "list"), ...)Details
Depending on constructor, we construct the object as follows:
"duration"(default): We build the object using theclock::duration_*()helper matching the precision, e.g.clock::duration_days(). Durations that don't fit in an integer are constructed with the"list"constructor."next": Use the constructor for the next supported class."list": We define as a list and repair attributes.