Fixed cardinality between time granules
Source:R/01_chronon_cardinality.R
chronon_cardinality_fixed.RdA restricted variant of chronon_cardinality() for time granule pairs
whose relationship is a constant, context-independent number (e.g., 60
seconds in a minute, 24 hours in a day). Unlike chronon_cardinality(),
methods for this generic do not receive (and must not need) an at time
point. Methods should ignore the granule sizes (n) of x and y, and
return the number of unit (n = 1L) x granules that fit within one unit
y granule. The generic scales this by the requested granule sizes.
Details
Defining a method for chronon_cardinality_fixed() automatically provides
a chronon_cardinality() method for the pair, and marks the relationship
as safe to use for chronon_divmod()'s graph traversal, where variable
(context-dependent) cardinalities cannot be used since no at is available
mid-traversal.