Temporal's total(): the whole duration as a possibly fractional count
of unit. Years, months and weeks need relative_to; without it a day
counts 24 hours.
Usage
temporal_total(x, unit, relative_to = NULL)
# S3 method for class 'zutempo_duration'
temporal_total(x, unit, relative_to = NULL)Arguments
- x
A
duration().- unit
A Temporal unit, singular or plural.
- relative_to
A
plain_date(),plain_date_time(),zoned_date_time()or a string one of them reads (a zone in brackets makes it zoned); with a zoned value, days follow the zone.