create_time_period_feature_flag: Creates an instance of a time period feature flag.

View source: R/feature_flag-time_period.R

create_time_period_feature_flagR Documentation

Creates an instance of a time period feature flag.

Description

Creates an instance of a time period feature flag.

Usage

create_time_period_feature_flag(from = NULL, to = NULL)

Arguments

from

date-time from which the feature flag should be enabled set as null if you want a one sided boundary.

to

date-time to which the feature flag should be enabled set as null if you want a one sided boundary

Details

Boundaries are set as inclusive

Examples

{
  two_sided_flag <- create_time_period_feature_flag(
    from = ISOdatetime(2020, 10, 10, 0, 0, 0, tz = "UTC"),
    to = ISOdatetime(2020, 11, 10, 0, 0, 0, tz = "UTC")
  )

  left_sided_flag <- create_time_period_feature_flag(
    from = ISOdatetime(2020, 10, 10, 0, 0, 0, tz = "UTC")
  )

  right_sided_flag <- create_time_period_feature_flag(
    to = ISOdatetime(2020, 10, 10, 0, 0, 0, tz = "UTC")
  )
}

featureflag documentation built on April 4, 2025, 5:45 a.m.