View source: R/feature_flag-time_period.R
create_time_period_feature_flag | R Documentation |
Creates an instance of a time period feature flag.
create_time_period_feature_flag(from = NULL, to = NULL)
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 |
Boundaries are set as inclusive
{
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")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.