Skip to contents

A tagged-value constructor that marks a numeric threshold as a number of hours. Use inside cl_time_diff() for self-documenting, unit-safe thresholds.

Usage

hours(n)

Arguments

n

A non-negative numeric value.

Value

A tagged numeric with class il_hours.

Examples

il_spec() |>
  il_compare(timestamp, cl_time_diff(hours(2), hours(24)))
#> Linkage Specification
#>   Comparisons (1):
#>     timestamp : time_diff
#>   Blocking rules: (none)