Package com.yahoo.config.application.api
Class TimeWindow
java.lang.Object
com.yahoo.config.application.api.TimeWindow
This class represents a window of time for selected hours, days and dates.
- Author:
- mpolden
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A range of local dates, which may be unbounded -
Method Summary
Modifier and TypeMethodDescriptionReturns the date range of this time window applies todays()
Returns days in this time windowstatic TimeWindow
Parse a time window from the given day, hour and time zone specificationhours()
Returns hours in this time windowboolean
Returns whether the given instant is in this time windowtoString()
zone()
Returns the time zone of this time window
-
Method Details
-
days
Returns days in this time window -
hours
Returns hours in this time window -
zone
Returns the time zone of this time window -
dateRange
Returns the date range of this time window applies to -
includes
Returns whether the given instant is in this time window -
toString
-
from
public static TimeWindow from(String daySpec, String hourSpec, String zoneSpec, String dateStart, String dateEnd) Parse a time window from the given day, hour and time zone specification
-