releaseDateStrategy
Configures a ReleaseDateStrategy for this feature using an Instant.
The feature will be disabled before the release date and enabled once the current time reaches or passes the release date.
Example
feature("new-feature") {
releaseDateStrategy(Instant.parse("2025-01-01T00:00:00Z"))
}Author
Yonatan Karp-Rudin
Parameters
The instant after which the feature becomes enabled.
See also
for enabling a feature within a time window
Configures a ReleaseDateStrategy for this feature using an ISO-8601 date string.
The feature will be disabled before the release date and enabled once the current time reaches or passes the release date.
Example
feature("new-feature") {
releaseDateStrategy("2025-01-01T00:00:00Z")
}Author
Yonatan Karp-Rudin
Parameters
The release date in ISO-8601 format (e.g., "2025-01-01T00:00:00Z").
See also
for enabling a feature within a time window
Throws
if the date string is not valid ISO-8601 format.
Configures a ReleaseDateStrategy for this feature using a LocalDateTime and timezone.
The feature will be disabled before the release date and enabled once the current time reaches or passes the release date.
Example
feature("new-feature") {
releaseDateStrategy(
dateTime = LocalDateTime(2025, 1, 1, 0, 0),
timezone = TimeZone.of("America/New_York")
)
}Author
Yonatan Karp-Rudin
Parameters
The local date and time of the release.
The timezone to interpret the local date time. Defaults to UTC.
See also
for enabling a feature within a time window